安装Anacanda (Python3.6)+tensorflow2.0+keras2.3.1

都是亲测,绝对可靠

一.安装Anacanda (Python3.6)

清华大学镜像安装Anacanda (Python3.6)

 

一直Next (Just me)

https://www.cnblogs.com/wenyule/articles/9931833.html

添加环境变量

把Anaconda3与Script添加到Path里面

二,下载TensorFlow

https://pypi.org/project/tensorflow/#files

下载我放在D:/Anaconda3里面

Install

可能出现错误:

错误1:.distributed 1.21.8 requires msgpack, which is not installed.

错误2:google-auth 1.11.0 has requirement setuptools>=40.3.0, but you'll have setuptools 39.1.0 which is incompatible. tensorboard 2.1.0 has requirement setuptools>=41.0.0, but you'll have setuptools 3 site:blog.csdn.net

错误3:

错误4:Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot

解决:

先根据提示安装包

pip install msgpack

然后升级setuptools 如图:

错误3是因为系统盘空间不足,清理一下既可

pip install wrapt --ignore-installed

至此成功安装

三、安装keras

conda install -c conda-forge keras

为y

安装一次不行就继续安装

结束:

打开Cmd

输入python

成功!!!

(其实用Anaconda Navigator和pycharm直接安装也可以,但一定要注意 conda,tensorflow,keras的版本匹配问题啊亲们)

四、Pycharm环境设置

pycharm我之前就安装过  所以直接跳到下一步

选择Anacanda

发布了35 篇原创文章 · 获赞 4 · 访问量 2338

猜你喜欢

转载自blog.csdn.net/devilangel2/article/details/104218620
今日推荐