【Conda】【TensorFlow】创建环境,安装TensorFlow 2.0
1 conda create -n TF_2C python=3.6
2 activate TF_2C
3 pip install tensorflow==2.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
4 测试
输出TensorFlow版本:print(tf.__version__)
5 安装其他
(1)安装matplotlib
python -m pip install -U pip setuptools
python -m pip install matplotlib
如果不成功,可以用以下方法:
下载地址: https://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib
将红框中的文件下载到本地,例如路径为:D:\software\matplotlib-3.2.1-cp36-cp36m-win_amd64.whl 直接PIP即可。
pip install D:\software\matplotlib-3.2.1-cp36-cp36m-win_amd64.whl
(2)python库
地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/