其他分享
首页 > 其他分享> > 旷视教会我如何安装tensorflow环境|这才是真正的pip install tensorflow

旷视教会我如何安装tensorflow环境|这才是真正的pip install tensorflow

作者:互联网

安装好Anaconda后,在anaconda promt命令行,或者Pycharm console中,输入以下命令

anaconda promt

conda create -n tensorflow python=3.6    建立python3.6虚拟环境,安装tensorflow
conda activate tensorflow 进入tensorflow环境
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow keras 安装keras
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy

原因是python3.7无法适配tensorflow,所以要安装python3.6虚拟环境。

然后用清华镜像,代替pip官网,快速下载你想要的包。

本文出自“青墟——博客园”,遇见你,一见倾心❤

标签:旷视,cn,虚拟环境,install,pip,tensorflow,安装
来源: https://www.cnblogs.com/guoxinyu/p/12877251.html