使用 pip 安装 TensorFlow

在安装TensorFlow时可能会遇到各种错误,如连接超时、证书验证失败、权限问题和版本不兼容等。解决方法包括设置代理、增加信任主机、使用`--user`选项、降级numpy版本以及屏蔽CPU特性警告。通过这些步骤,可以成功安装TensorFlow。
摘要由CSDN通过智能技术生成

命令:pip3 install -U pip virtualenv

错误1:
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) a
fter connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.V
erifiedHTTPSConnection object at 0x0000000004689148>, 'Connection to pypi.org ti
med out. (connect timeout=15)')': /simple/pip/

解决办法:
设置代理
pip3  --proxy http://XXXXXXX:80 install -U pip virtualen

错误2:
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))
after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFI
CATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certif
icate (_ssl.c:1076)'))': /packages/db/9e/df208b2baad146fe3fbe750eacadd6e49bcf2f2
c3c1117b7192a7b28aec4

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值