(Python39) C:\Users\17128>pip install paddle
Collecting paddle
Using cached paddle-1.0.2.tar.gz (579 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "" , line 2, in
File "" , line 34, in
File "C:\Users\17128\AppData\Local\Temp\pip-install-ql_kbh8r\paddle_223cb0a23d454079956c5b78d60f81fb\setup.py", line 3, in
import paddle
File "C:\Users\17128\AppData\Local\Temp\pip-install-ql_kbh8r\paddle_223cb0a23d454079956c5b78d60f81fb\paddle\__init__.py", line 5, in
import common, dual, tight, data, prox
ModuleNotFoundError: No module named 'common'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
paddle的包安装真的很上头,我在配置的时候,同样的环境别人的电脑可以,我的就不可以,有两点建议1.创建一个新的虚拟环境,安装paddle,如果想要放到你的环境中的话,把文件包复制下来,再粘贴到你的环境中
2.别人的电脑上配置好的paddle环境,复制粘贴到你的电脑上