pip常見報錯

DogLeftover發表於2024-06-28
  • 報錯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

相關文章