第20月第28天 tensorflow

1.

 

 

  505  sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade virtualenv 

  506   virtualenv --system-site-packages virtualenv01

  507  cd virtualenv01/

  508  ls

  509  source ./bin/activate

  510  easy_install -U pip

 

  512  pip -V

  513  pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade tensorflow

 

 

tensorflow降级

pip uninstall  tensorflow

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple  tensorflow==1.1.0

 

https://www.tensorflow.org/install/install_mac?hl=zh-cn

 

pypi源

vim ~/.pip/pip.conf 

把配置信息都注释掉,让pip用回默认的官方源。 

https://blog.csdn.net/qq_33621542/article/details/81366121

 

https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

五分钟带你入门TensorFlow

3零基础用TensorFlow玩转Kaggle的“手写识别

https://www.jianshu.com/p/2ea7a0632239

 

anaconda python2

 

conda create -n python2 python=2.7 anaconda

cd /anaconda3/bin

source activate python2

 

cd /anaconda3/bin

(python2) tempdeMacBook-Pro:bin temp$ source deactivate

 

 
conda install --channel https://conda.anaconda.org/anaconda tensorflow=1.1.0

jupyter notebook

版本:

import tensorflow as tf

tf.__version__

查询tensorflow安装路径为:

tf.__path__

 

 

https://stackoverflow.com/questions/24405561/how-to-install-2-anacondas-python-2-and-3-on-mac-os

 

python

python中,每个py文件被称之为模块,每个具有__init__.py文件的目录被称为包。

 

https://github.com/yanqiangmiffy/TensorFlow-MNIST-WEBAPP

https://www.imooc.com/video/17236

 

posted @ 2018-05-28 08:54  lianhuaren  阅读(119)  评论(0)    收藏  举报