Win10环境下Anaconda3安装tensorflow2.3报错解决方案

1 篇文章 0 订阅
1 篇文章 0 订阅

安装第三方库tensorflow遇到的坑

背景还是要描述一下的,好不容易知道win10是怎么控制用户权限的,准备跑程序,却发现自己的第三方库还没有安装,于是开始了新一轮入坑。

1.安装TensorFlow总是提示时间超时
在这里插入图片描述
2.换个时段安装,却遇到了Cannot uninstall ‘six’,使用pip install --upgrade six语句无效,仍然提示同样的错误。解决办法:pip install six --upgrade --ignore-installed six
在这里插入图片描述
pip install --upgrade six在这里插入图片描述
pip install six --upgrade --ignore-installed six在这里插入图片描述
3.在numpy这里又遇到用户权限问题,Consider using the --user option or check the permissions.可以使用这个语境来解决:pip install --ignore-installed numpy --user
在这里插入图片描述
4.不能安装wrapt。Cannot uninstall ‘wrapt’,继续使用ip install wrapt --upgrade --ignore-installed six,虽然尾巴写错了,但是还是成功了
在这里插入图片描述
5.继续执行pip install tensorflow,终于安装成功
在这里插入图片描述
6.本以为成功了,可是又提示tensorflow 2.3.1 requires numpy<1.19.0,>=1.16.0, but you’ll have numpy 1.19.4 which is incompatible,numpy版本过高,要降低版本。pip install numpy==1.16.0
在这里插入图片描述
终于完成了。。。

周末临睡前又解决了这一个问题,还是把这个分享给大家吧!少走弯路,希望对你有帮助!
请帮忙点赞、收藏!Thanks♪(・ω・)ノ****如需转载,请注明出处。

  • 5
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
根据引用\[1\]和引用\[2\]的内容,可以通过Anaconda安装TensorFlow。首先,打开Anaconda Prompt,然后执行以下命令来创建一个名为"tensorflow"的虚拟环境: ``` conda create -n tensorflow python=3.6 ``` 这将创建一个名为"tensorflow"的虚拟环境,并安装Python 3.6版本。接下来,激活这个虚拟环境,可以使用以下命令: ``` conda activate tensorflow ``` 然后,可以使用pip命令来安装TensorFlow 2.3版本: ``` pip install tensorflow==2.3 ``` 这将安装TensorFlow 2.3版本到"tensorflow"虚拟环境中。安装完成后,就可以在该环境中使用TensorFlow 2.3了。 #### 引用[.reference_title] - *1* *2* [使用Anaconda安装TensorFlow详细教程](https://blog.csdn.net/qq_44111805/article/details/128415567)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [手把手装anaconda安装TensorFlow2.3(Python3.8)](https://blog.csdn.net/weixin_44737922/article/details/109029627)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值