从anaconda安装tensorflow2.0后,经notebook测试,工作正常。于是安装了pycharm,但是报错不能加载模块,原来是numpy版本的问题,于是安装网上的介绍修改
1.先改pip的源
使用win+R调出运行,输入”%appdata%”,回车,然后新建pip文件夹,再新建pip.ini文件,输入内容
[global]
index-url=https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn
disable-pip-version-check = true
timeout = 6000
2.然后重新安装numpy
pip uninstall numpy
然后再
pip install numpy
3.再次运行依然报错 Could not load dynamic library 'cudart64_100.dll',这个是环境变量没配置好
配置环境变量
4.重启pycharm,再次运行,成功。