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

第20月第28天 tensorflow的更多相关文章

  1. 第20月第18天 小码哥swift

    1. 9月12日第一次更新 第二篇玩转[斗鱼直播APP]系列之界面分析 第三篇玩转[斗鱼直播APP]系列之项目部署 第四篇玩转[斗鱼直播APP]系列之获取APP图片资源 第五篇玩转[斗鱼直播APP]系 ...

  2. 第27月第28天 iOS bundle

    1. 7.如果将自己打包的bundle给别人使用,别人在打包上传过程中可能会遇到错误提示如: ERROR ITMS-90171: "Invalid Bundle Structure - Th ...

  3. 第26月第28天 avplayer cache

    1.urlsession https - (void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticati ...

  4. 第20月第29天 cocoa抽象工厂 cocoapods组件化 cocoapods升级

    1. 在 Cocoa Touch 框架中,类簇是抽象工厂模式在 iOS 下的一种实现,以 NSArray 举例,将原有的 alloc+init 拆开写: id obj1 = [NSArray allo ...

  5. 第20月第17天 mvvm 多次点击push -ObjC

    1. 响应式库EasyReact建成后,为了能使其得到更好的利用,更好地降低使用的理解和学习成本,臧成威老师又带领团队开发了基于响应式的MVVM框架:EasyMVVM. https://www.jia ...

  6. 第20月第14天 objc_getAssociatedObject _cmd

    1. - (CustomNavigationControllerDelegate *)customDelegate { return objc_getAssociatedObject(self, _c ...

  7. 第20月第9天 paddlepaddle

    1. http://staging.paddlepaddle.org/docs/develop/book/02.recognize_digits/index.cn.html

  8. 第20月第4天 pycharm utf-8

    1.运行python %run a.py 运行 https://blog.csdn.net/little_bobo/article/details/78982412 2.UnicodeDecodeEr ...

  9. 第17月第28天 python yield

    1. class Fab(object): def __init__(self, max): self.max = max self.n, self.a, self.b = 0, 0, 1 def _ ...

随机推荐

  1. js 打开标签

    JS打开新标签的2种方式 1.超链接<a href="http://www.jb51.net" title="脚本之家">Welcome</a ...

  2. C# Winfrom 发送邮件验证码&Timer控件

    邮件发送: //定义一个全局的string类型的验证码: string yzm = ""; //定义一个字符串,这里面包含所有需要的验证码的元素: string a = " ...

  3. C#面向对象中类的继承和扫描顺序和接口

    1.   类的分类:普通基类.抽象基类(abstract  class)1.   类的扫描顺序:a.先近后远 b.(向上扫描)以谁身份声明的变量就在谁身上开始扫描, 2.   扫描的特殊情况:普通基类 ...

  4. 【译】8. Java反射——注解

    原文地址:http://tutorials.jenkov.com/java-reflection/annotations.html ================================== ...

  5. 利用/dev/urandom文件创建随机数

    1:/dev/urandom和/dev/random是什么 这两个文件记录Linux下的熵池,所谓熵池就是当前系统下的环境噪音,描述了一个系统的混乱程度,环境噪音由这几个方面组成,如内存的使用,文件的 ...

  6. 关于mac 系统如何通过终端 连接linux服务器 并传文件!

    首先要打开终端 mac远程链接服务器 输入  : ssh   root@xxx.xx.xxx.xx xxx.xx.xxx.xx是端口号 后面会要求你输入password 即可远程连接 mac通过终端给 ...

  7. systemd 编写

    转载文章:http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-part-two.html https://wizardforcel.gitb ...

  8. 手把手教你通过Ambari新建Hadoop集群图解案例

    手把手教你通过Ambari新建Hadoop集群图解案例 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 登陆系统之后,会看到Ambari空空如也的欢迎界面,接下来我们就需要介绍如何通 ...

  9. c++ hash_map/unordered_map 使用

    C++中有很多中key-value形式的容器,map/hash_map/unordered_map/vector_map.下面讲述各个map的使用及其区别. map: #include <ios ...

  10. SpringBoot笔记十七:热部署

    目录 什么是热部署 Devtools热部署 什么是热部署 热部署,就是在应用正在运行的时候升级软件,却不需要重新启动应用. 举个例子,王者荣耀的更新有时候就是热部署,热更新,就是他提示你更新,更新40 ...