window下安装pip,在script文件中,easy_install pip,之后就可以将pip.exe添加环境变量path
安装tensorflow时,在windows系统下要求python是3.6.5版本,所以可能比较麻烦,如果要想简单点就直接使用anaconda3.5,下载地址为https://repo.continuum.io/archive/,下载windows版本哦。
还有就是pip install tensorflow==1.5
但是在cmd下,输入pip install tensorflow之后,在Pycharm中导入tensorflow模块,还是会报错,结果为FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is,解决方案为pip install h5py==2.8.0rc1。
随后又会出现个问题,就是提示安装时超时,解决方案是,当然这里把tensorflow改成h5py==2.8.0rc1就可以了,还有如pip3会报错,则改成pip就可!
pip3 --default-timeout=100 install -U tensorflow