美文网首页
python3 + tensorflow+zeppelin

python3 + tensorflow+zeppelin

作者: 无须想 | 来源:发表于2017-12-27 20:27 被阅读0次
    1. Installing with virtualenv
      nohup jupyter notebook > /dev/null 2>&1 &
      trick:
      import sys
      sys.executable
      如何切换到virtualenv ? pip install ipykernel && python -m ipykernel install --user --name [环境名] --display-name [简称]
      https://blog.csdn.net/lt326030434/article/details/88581790

    设置密码:
    https://bitmingw.com/2017/07/09/run-jupyter-notebook-server/

    1).  浏览器打开jupyter,新建一个python文件,第一行输入:`from notebook.auth import passwd`
    2).  shift+enter执行命令并进入下一行。下一行输入:`passwd()` ,回车后提示输入密码,输入两次。
    3).  哈希密码`sha1:xxxxx`
    4).  再次打开`配置文件jupyter_notebook_config.py`,找到`c.NotebookApp.password`=第三步的哈希密码,重启`jupyter notebook`即可
    

    国内镜像:
    https://blog.csdn.net/qq_39161804/article/details/81191977

    https://www.tensorflow.org/install/install_mac

    install.png

    for example :
    virtualenv --system-site-packages -p python3 ~/TensorFlowEnvPy3
    python3 安装tensorflow
    https://blog.csdn.net/inkky/article/details/79680392

    pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.6.0-py3-none-any.whl

    
    蛋疼的版本问题:https://www.jianshu.com/p/1a3e194886b4
    目前tensorflow对python 3.7支持不好,建议使用python3.6或者python3.5
    https://github.com/lakshayg/tensorflow-build
    https://www.jianshu.com/p/98a19215ade6
    https://www.python.org/downloads/mac-osx/
    https://segmentfault.com/a/1190000015158290
    https://www.imooc.com/article/68889
    https://blog.csdn.net/fk1174/article/details/80954334
    https://github.com/tensorflow/tensorflow/issues/20444
    
    

    报错:https://stackoverflow.com/questions/49183801/ssl-certificate-verify-failed-with-urllib
    pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl

    https://www.python.org/downloads/mac-osx/
    https://www.jianshu.com/p/98a19215ade6

    2.安装pyh模块
    http://hanxiaomax.github.io/trans/pyh-chinese-doc/

    3.python2 到 python3 踩坑
    tips:
    (1)dict 没有has_key函数;用 key in dict 判断,并且dict.keys()返回类型需要强制转成list再排序,即list(dict.keys())
    (2)map函数,python2中直接返回结果,而python3中返回的是map对象, 需要list转化;注意如果不在map前加list,lambda函数根本不会执行~ ~蛋疼
    4、zeppelin使用说明
    http://zeppelin.apache.org/docs/0.8.0-SNAPSHOT/index.html

    5、matplotlib问题
    https://blog.csdn.net/weixin_38865768/article/details/80734732

    相关文章

      网友评论

          本文标题:python3 + tensorflow+zeppelin

          本文链接:https://www.haomeiwen.com/subject/oclpgxtx.html