2022-07-02
版本:
python3.5
Anaconda 4.2.0
tensorflow2.0 cpu版本
1、安装命令
pip3 install tensorflow==2.0.0.0a0 -i https://pypi.tuna.tsinghua.edu.cn/simple/ # -i表示重新指定镜像,提高下载速度
2、报错以及解决方法
(1)报错:“Cannot remove entries from nonexistent file c:program filesanaconda3libsite-packageseasy-install.pth”
解决方案:
pip install --upgrade --ignore-installed setuptools
(2)报错:“Cannot uninstall ‘Werkzeug’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall”、、
解决方案:
3、成功安装后 import tensorflow as tf 报警:“FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’”
解决方案:
# 需要先卸载现有的numpy,并重新指定1.16.4版本的numpy pip3 uninstall numpy pip3 install numpy==1.16.4 -i https://pypi.tuna.tsinghua.edu.cn/simple/
# 如果还有部分报警,最后绝招
pip install h5py==2.8.0rc1
分类:
技术点:
相关文章:
© 版权声明
本站下载的源码均来自公开网络收集转发二次开发而来,
若侵犯了您的合法权益,请来信通知我们1413333033@qq.com,
我们会及时删除,给您带来的不便,我们深表歉意。
下载用户仅供学习交流,若使用商业用途,请购买正版授权,否则产生的一切后果将由下载用户自行承担,访问及下载者下载默认同意本站声明的免责申明,请合理使用切勿商用。
THE END
暂无评论内容