安装paddle - 使用百度镜像
Posted amcomputer
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装paddle - 使用百度镜像相关的知识,希望对你有一定的参考价值。
安装paddle
使用百度镜像
pip install paddlepaddle==2.2.1 -i https://mirror.baidu.com/pypi/simple
普通安装方式,报错。
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting paddle
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/55/cf/e4b6b9a54d2f072e4491e34317bf5f5fea260da8a3072e641832dc9ce770/paddle-1.0.2.tar.gz (579 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/93/cc/5d3b4eb9c5ea536ddaf10e4d7ec2019e1bde9d0b4207f314f7cf8a1af0d7/paddle-1.0.1.tar.gz (539 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a9/c2/10db468c6a588b208ad22506c0f390059c5fa7a399e2085baefba3dcc24e/paddle-1.0.0.tar.gz (539 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'D:\\code\\python\\pycharm\\baidu-argothrim-machine-learning\\venv\\Scripts\\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\\\Users\\\\yang\\\\AppData\\\\Local\\\\Temp\\\\pip-install-af5mfgxk\\\\paddle_17e374c2d0994546896c74d5deaebb29\\\\setup.py'"'"'; __file__='"'"'C:\\\\Users\\\\yang\\\\AppData\\\\Local\\\\Temp\\\\pip-install-af5mfgxk\\\\paddle_17e374c2d0994546896c74d5deaebb29\\\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\\r\\n'"'"', '"'"'\\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\\Users\\yang\\AppData\\Local\\Temp\\pip-pip-egg-info-mbphbocg'
cwd: C:\\Users\\yang\\AppData\\Local\\Temp\\pip-install-af5mfgxk\\paddle_17e374c2d0994546896c74d5deaebb29\\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\\Users\\yang\\AppData\\Local\\Temp\\pip-install-af5mfgxk\\paddle_17e374c2d0994546896c74d5deaebb29\\setup.py", line 3, in <module>
import paddle
File "C:\\Users\\yang\\AppData\\Local\\Temp\\pip-install-af5mfgxk\\paddle_17e374c2d0994546896c74d5deaebb29\\paddle\\__init__.py", line 5, in <module>
import common, dual, tight, data, prox
ModuleNotFoundError: No module named 'common'
----------------------------------------
WARNING: Discarding https://pypi.tuna.tsinghua.edu.cn/packages/55/cf/e4b6b9a54d2f072e4491e34317bf5f5fea260da8a3072e641832dc9ce770/paddle-1.0.2.tar.gz#sha256=aeb13606880a932f97eb1a810bc8820c7e80f943abcdb56f272b1375964ef117 (from https://pypi.tuna.tsinghua.edu.cn/simple/paddle/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1:
command: 'D:\\code\\python\\pycharm\\baidu-argothrim-machine-learning\\venv\\Scripts\\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\\\Users\\\\yang\\\\AppData\\\\Local\\\\Temp\\\\pip-install-af5mfgxk\\\\paddle_b0d0fde7a4e74428a5961473b370ff22\\\\setup.py'"'"'; __file__='"'"'C:\\\\Users\\\\yang\\\\AppData\\\\Local\\\\Temp\\\\pip-install-af5mfgxk\\\\paddle_b0d0fde7a4e74428a5961473b370ff22\\\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\\r\\n'"'"', '"'"'\\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\\Users\\yang\\AppData\\Local\\Temp\\pip-pip-egg-info-_t8cab6x'
cwd: C:\\Users\\yang\\AppData\\Local\\Temp\\pip-install-af5mfgxk\\paddle_b0d0fde7a4e74428a5961473b370ff22\\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\\Users\\yang\\AppData\\Local\\Temp\\pip-install-af5mfgxk\\paddle_b0d0fde7a4e74428a5961473b370ff22\\setup.py", line 3, in <module>
import paddle
File "C:\\Users\\yang\\AppData\\Local\\Temp\\pip-install-af5mfgxk\\paddle_b0d0fde7a4e74428a5961473b370ff22\\paddle\\__init__.py", line 5, in <module>
import common, dual, tight
ModuleNotFoundError: No module named 'common'
----------------------------------------
WARNING: Discarding https://pypi.tuna.tsinghua.edu.cn/packages/93/cc/5d3b4eb9c5ea536ddaf10e4d7ec2019e1bde9d0b4207f314f7cf8a1af0d7/paddle-1.0.1.tar.gz#sha256=e4468cfb5be7a2f3373bd93c31541da758027bbd6ffe75f83008a88e70e2eae7 (from https://pypi.tuna.tsinghua.edu.cn/simple/paddle/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1:
command: 'D:\\code\\python\\pycharm\\baidu-argothrim-machine-learning\\venv\\Scripts\\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\\\Users\\\\yang\\\\AppData\\\\Local\\\\Temp\\\\pip-install-af5mfgxk\\\\paddle_a85a5d88ca4443d0aabeb684de1ff7ee\\\\setup.py'"'"'; __file__='"'"'C:\\\\Users\\\\yang\\\\AppData\\\\Local\\\\Temp\\\\pip-install-af5mfgxk\\\\paddle_a85a5d88ca4443d0aabeb684de1ff7ee\\\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\\r\\n'"'"', '"'"'\\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\\Users\\yang\\AppData\\Local\\Temp\\pip-pip-egg-info-rrrvy1if'
cwd: C:\\Users\\yang\\AppData\\Local\\Temp\\pip-install-af5mfgxk\\paddle_a85a5d88ca4443d0aabeb684de1ff7ee\\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\\Users\\yang\\AppData\\Local\\Temp\\pip-install-af5mfgxk\\paddle_a85a5d88ca4443d0aabeb684de1ff7ee\\setup.py", line 3, in <module>
import paddle
File "C:\\Users\\yang\\AppData\\Local\\Temp\\pip-install-af5mfgxk\\paddle_a85a5d88ca4443d0aabeb684de1ff7ee\\paddle\\__init__.py", line 5, in <module>
import common, dual, tight
ModuleNotFoundError: No module named 'common'
----------------------------------------
WARNING: Discarding https://pypi.tuna.tsinghua.edu.cn/packages/a9/c2/10db468c6a588b208ad22506c0f390059c5fa7a399e2085baefba3dcc24e/paddle-1.0.0.tar.gz#sha256=64abc6b5574da69ea02ca058fbd0677fc0a19473b45c34cf0c4d23aeaf6738e1 (from https://pypi.tuna.tsinghua.edu.cn/simple/paddle/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement paddle (from versions: 1.0.0, 1.0.1, 1.0.2)
ERROR: No matching distribution found for paddle
以上是关于安装paddle - 使用百度镜像的主要内容,如果未能解决你的问题,请参考以下文章