【windows+pycharm安装tensorflow】
先anaconda
open anaconda prompt
$ conda create -n tensorflow python=3.5
确保名叫tensorflow的环境已经被成功添加:conda info --envs
$ activate tensorflow.
$ conda install tensorflow
Verifying the Installation
$python
import tensorflow as tf
错误为ImportError: cannot import name 'weakref',那么请在tensorflow的的安装位置中找到名为的tf_should_use.py文件,将第28行的from backports import weakref替换为import weakref
open pycharm
interpreter->add python interpreter-> existing environment->LIJINGYU070/Anaconda3/envs/tensorflow/python.exe
package + ->tensorflow->install
package 'tensorflow' installed successfully
==============
安装了scikit learn之后,numpy报错 multiarray找不到, 连numpy都用不了了
pip uninstall numpy
pip install -U numpy
用conda install老不行
pandas总是报错cant determine bottleneck
conda install bottleneck 就好了
在create一个envtensorflow之后,install tensorflow,发现import numpy报错multiarray找不到,
pip install numpy --upgrade就好了
装pandas 一装就坏,报错numexpr缺少__version__属性
pip install pandas --upgrade就好了
吓得我只敢 pip install scikit-learn --upgrade
Finally!!!
Done!!!