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

安装第三方库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♪(・ω・)ノ****如需转载,请注明出处。

猜你喜欢

转载自blog.csdn.net/zxxxlh123/article/details/109966474