升级下载TensorFlow时报错信息,wrapt

  在搭了梯子情况下下载TensorFlow,升级的是2.5.0版本

前面下载都可以,到了wrapt这一步时报错ERROR: Failed building wheel for wrapt

按教程去https://www.lfd.uci.edu/~gohlke/pythonlibs/#wrapt这里下载了我用的python3.6版本的wrpat,路径名称没错,但报错找不到文件

然后将文件改无中文的路径就可以了

接着下载TensorFlow,可以用清华镜像,非常快,梯子网速太慢了

https://pypi.tuna.tsinghua.edu.cn/simple/tensorflow-cpu/我用的cpu版本的,找到对应系统和Python版本的TensorFlow下载就可以了

问题又来了   

socket.timeout: The read operation timed out

raise ReadTimeoutError(self._pool, None, 'Read timed out.')
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

而且运行以前的TensorFlow也有问题了

ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['C:\\Program Files\\Python36\\lib\\site-packages\\numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.

Process finished with exit code 1

numpy版本新旧都有需要删除干净再重下

C:\Users\朱玉媛>pip uninstall numpy
Cannot uninstall requirement numpy, not installed
You are using pip version 9.0.3, however version 21.1.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Users\朱玉媛>pip --default-timeout=100 install -U tensorflow
Collecting tensorflow
  Using cached https://files.pythonhosted.org/packages/b8/f3/6e7c0712acf8f0293897bc66071709f7a2d7fedfd05d1a5c16851d20f08d/tensorflow-2.5.0-cp36-cp36m-win_amd64.whl

输入命令pip --default-timeout=100 install -U tensorflow
Collecting tensorflow
  Using cached https://files.pythonhosted.org/packages/b8/f3/6e7c0712acf8f0293897bc66071709f7a2d7fedfd05d1a5c16851d20f08d/tensorflow-2.5.0-cp36-cp36m-win_amd64.whl

跑成功了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
从提供的引用中可以看出,下载TensorFlow出现了错误,具体的错误是Traceback (most recent call last)。 这个错误可能有多个原因,但可以尝试以下步骤来解决问题: 1. 检查管理员权限:确保在安装TensorFlow之前已获取管理员权限。如果以管理员身份运行pip命令可能有助于解决权限问题。 2. 使用镜像网站:由于网络问题可能导致下载失败,可以尝试使用镜像网站来更新和下载TensorFlow。 3. 解决依赖问题:在安装TensorFlow之前,可能需要安装一些依赖包。根据错误信息,其中一个错误是关于wrapt包的。可以尝试使用命令pip install -U --ignore-installed wrapt enum34 simplejson netaddr来解决这个问题。 4. 更新numpy:另一个错误是关于numpy包的。可以尝试更新numpy包来解决这个问题,使用命令pip install --user --update numpy -i https://pypi.douban.com/simple。 通过按照这些步骤来解决错误,您应该能够成功地下载和安装TensorFlow。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [pip安装tensorflow报错Traceback (most recent call last):](https://blog.csdn.net/qq_47056525/article/details/126232410)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [在python中安装tensorflow出现错误“ERROR: Exception: Traceback (most recent call last): File.........](https://blog.csdn.net/qq_21561539/article/details/122642675)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值