Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

替换清华源可以成功安装paddlepaddle==2.3.2 #9273

Open
2 of 3 tasks
zjykzj opened this issue Jan 10, 2025 · 1 comment
Open
2 of 3 tasks

替换清华源可以成功安装paddlepaddle==2.3.2 #9273

zjykzj opened this issue Jan 10, 2025 · 1 comment
Assignees

Comments

@zjykzj
Copy link

zjykzj commented Jan 10, 2025

问题确认 Search before asking

  • 我已经查询历史issue,没有发现相似的bug。I have searched the issues and found no similar bug report.

Bug组件 Bug Component

Installation

Bug描述 Describe the Bug

文件 https://github.com/PaddlePaddle/PaddleDetection/blob/release/2.8/docs/tutorials/INSTALL_cn.md 说明了如何安装paddlepaddle

# CPU
python -m pip install paddlepaddle==2.3.2 -i https://mirror.baidu.com/pypi/simple

实际安装后发现出错,替换清华源可以成功安装paddlepaddle

(paddle) zj@zhujian:~$ pip3 install paddlepaddle==2.3.2 -i https://mirror.baidu.com/pypi/simple
Looking in indexes: https://mirror.baidu.com/pypi/simple
ERROR: Could not find a version that satisfies the requirement paddlepaddle==2.3.2 (from versions: none)
ERROR: No matching distribution found for paddlepaddle==2.3.2
(paddle) zj@zhujian:~$
(paddle) zj@zhujian:~$
(paddle) zj@zhujian:~$
(paddle) zj@zhujian:~$ pip3 install paddlepaddle==2.3.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting paddlepaddle==2.3.2
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/eb/7d/5a684f63c6074b96d7e06dcd8ef6d3de50da7f23028e9b1991c0d8c7044d/paddlepaddle-2.3.2-cp38-cp38-manylinux1_x86_64.whl (112.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.6/112.6 MB 1.7 MB/s eta 0:00:00
Collecting requests>=2.20.0 (from paddlepaddle==2.3.2)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl (64 kB)
Requirement already satisfied: numpy>=1.13 in ./.local/lib/python3.8/site-packages (from paddlepaddle==2.3.2) (1.24.4)
Collecting protobuf<=3.20.0,>=3.1.0 (from paddlepaddle==2.3.2)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/88/88/cd55f87e896b82a3aba8e6c0affc077de51f7321cf730622b17ef7b0f69c/protobuf-3.20.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 2.1 MB/s eta 0:00:00
Collecting Pillow (from paddlepaddle==2.3.2)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fb/ad/435fe29865f98a8fbdc64add8875a6e4f8c97749a93577a8919ec6f32c64/pillow-10.4.0-cp38-cp38-manylinux_2_28_x86_64.whl (4.5 MB)
Collecting six (from paddlepaddle==2.3.2)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl (11 kB)
Collecting decorator (from paddlepaddle==2.3.2)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d5/50/83c593b07763e1161326b3b8c6686f0f4b0f24d5526546bee538c89837d6/decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting astor (from paddlepaddle==2.3.2)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c3/88/97eef84f48fa04fbd6750e62dcceafba6c63c81b7ac1420856c8dcc0a3f9/astor-0.8.1-py2.py3-none-any.whl (27 kB)
Collecting paddle-bfloat==0.1.7 (from paddlepaddle==2.3.2)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/76/d7/ba0e1aeec33e20c78af5cf2fdbb7e7cabfe4679557e68759a17c97e03540/paddle_bfloat-0.1.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (385 kB)
Collecting opt-einsum==3.3.0 (from paddlepaddle==2.3.2)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/bc/19/404708a7e54ad2798907210462fd950c3442ea51acc8790f3da48d2bee8b/opt_einsum-3.3.0-py3-none-any.whl (65 kB)
Collecting charset-normalizer<4,>=2 (from requests>=2.20.0->paddlepaddle==2.3.2)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1e/0d/38ef4ae41e9248d63fc4998d933cae22473b1b2ac4122cf908d0f5eb32aa/charset_normalizer-3.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (144 kB)
Collecting idna<4,>=2.5 (from requests>=2.20.0->paddlepaddle==2.3.2)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl (70 kB)
Collecting urllib3<3,>=1.21.1 (from requests>=2.20.0->paddlepaddle==2.3.2)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ce/d9/5f4c13cecde62396b0d3fe530a50ccea91e7dfc1ccf0e09c228841bb5ba8/urllib3-2.2.3-py3-none-any.whl (126 kB)
Collecting certifi>=2017.4.17 (from requests>=2.20.0->paddlepaddle==2.3.2)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a5/32/8f6669fc4798494966bf446c8c4a162e0b5d893dff088afddf76414f70e1/certifi-2024.12.14-py3-none-any.whl (164 kB)
Installing collected packages: paddle-bfloat, urllib3, six, protobuf, Pillow, opt-einsum, idna, decorator, charset-normalizer, certifi, astor, requests, paddlepaddle
Successfully installed Pillow-10.4.0 astor-0.8.1 certifi-2024.12.14 charset-normalizer-3.4.1 decorator-5.1.1 idna-3.10 opt-einsum-3.3.0 paddle-bfloat-0.1.7 paddlepaddle-2.3.2 protobuf-3.20.0 requests-2.32.3 six-1.17.0 urllib3-2.2.3

安装成功后检查paddle版本:

(paddle) zj@zhujian:~$ python
Python 3.8.20 | packaged by conda-forge | (default, Sep 30 2024, 17:52:49)
[GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle
/home/zj/miniforge3/envs/paddle/lib/python3.8/site-packages/setuptools/command/easy_install.py:41: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
/home/zj/miniforge3/envs/paddle/lib/python3.8/site-packages/pkg_resources/__init__.py:3154: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
>>> paddle.utils.run_check()
Running verify PaddlePaddle program ...
PaddlePaddle works well on 1 CPU.
W0110 15:42:37.280792  1461 fuse_all_reduce_op_pass.cc:76] Find all_reduce operators: 2. To make the speed faster, some all_reduce ops are fused during training, after fusion, the number of all_reduce ops is 2.
PaddlePaddle works well on 2 CPUs.
PaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now.
>>>
>>>
>>>
(paddle) zj@zhujian:~$ python -c "import paddle; print(paddle.__version__)"
/home/zj/miniforge3/envs/paddle/lib/python3.8/site-packages/setuptools/command/easy_install.py:41: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
/home/zj/miniforge3/envs/paddle/lib/python3.8/site-packages/pkg_resources/__init__.py:3154: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
2.3.2

复现环境 Environment

OS: Windows WSL2 Ubuntu 20.04 LTS
PaddlePaddle: 2.3.2

Bug描述确认 Bug description confirmation

  • 我确认已经提供了Bug复现步骤、代码改动说明、以及环境信息,确认问题是可以复现的。I confirm that the bug replication steps, code change instructions, and environment information have been provided, and the problem can be reproduced.

是否愿意提交PR? Are you willing to submit a PR?

  • 我愿意提交PR!I'd like to help by submitting a PR!
@Bobholamovic
Copy link
Member

看起来这是一个文档错误,感谢你指出这个问题,我们将在近期修复~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants