展开
拓展 关闭
订阅号推广码
GitHub
视频
公告栏 关闭

pip常见报错

  • 报错1:Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-*
#  解决方案:升级pip
pip install --upgrade pip
  • 报错2
[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安装
posted @ 2024-06-28 11:03  DogLeftover  阅读(33)  评论(0编辑  收藏  举报