【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

 

【windows+pycharm安装tensorflow】

上一篇:C# 缓存的实现


下一篇:C# TabControl 带删除