- 报错1:Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-*
# 解决方案:升级pip
pip install --upgrade pip
[root@bogon home]# pip install tf-nightly
ERROR: Could not find a version that satisfies the requirement tf-nightly (from versions: none)
ERROR: No matching distribution found for tf-nightly
# 解决方案:指定镜像源头
pip install torch==1.4.0 -i https://mirrors.aliyun.com/pypi/simple/
- 报错3:pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='mirrors.aliyun.com', port=443): Read timed out.
# 解决方案
pip install --default-timeout=100 alphabet
- 报错4:ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问
# 依赖正在使用,无法更新,先停用再尝试
# 权限不足,使用管理员身份打开cmd安装