现在tensorflow最高只支持到python3.6,看这里。
省事起见,直接安装python3.6(例如Miniconda3-4.3.30.2-Windows-x86_64.exe)点这里选择下载安装好了之后,在pycharm里面设置好,打开。
或者在这里下载Anaconda安装。
直接pip install tensorflow即可。
当pip install tensorflow出现下面的问题时:
Found existing installation: wrapt 1.10.10
DEPRECATION: Uninstalling a distutils installed project (wrapt) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
解决方法(强制升级wrapt):
pip install wrapt --upgrade --ignore-installed wrapt
注:修改python的环境变量