搭建TensorFlow开发环境
1.安装Python环境(64位环境) 安装教程参考:https://www.cnblogs.com/xrainchen/articles/14093427.html
2.升级pip(如果已经是最新版本,忽略)
升级问题:no module named pip 。可参考:https://www.cnblogs.com/xrainchen/articles/14097273.html
3.创建Python虚拟环境 参考:https://www.cnblogs.com/xrainchen/articles/14097354.html
1.安装虚拟环境 pip install -U virtualenv
2.设置虚拟环境
4.安装tensorflow(tensorflow目前只支持Python64位且支持版本只到3.5)
1.安装tensorflow pip install --upgrade tensorflow
2.测试安装结果:
安装问题:No matching distribution found for tensorflow https://www.tqwba.com/x_d/jishu/6491.html
a.降级安装 安装Python环境中可获取到2.7.18版本
b.高版本安装方式 python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl

3.No matching distribution found for tensorflow
4.安装jupyter
pip install jupyter
#安装jupyter的kernel
python -m ipykernel install --user --name=虚拟环境名称
#查看安装的kernel
jupyter kernelspec list
#打开jupyter notebook
jupyter notebook
基于Anaconda安装tensorflow https://www.cnblogs.com/ming-4/p/11516728.html

浙公网安备 33010602011771号