在 Pycharm (Mac) 上安装 tensorflow [英] Installing tensorflow on Pycharm (Mac)
问题描述
我试图在 Pycharm IDE 中使用 tensorflow.
好像在Pycharm中,是一键安装一个包.颠簸很容易.现在当我尝试安装 tensorflow 时发生错误.Tensorflow 是通过 Mac 上的终端安装的,如截图所示,使用命令
sudo pip install --upgrade
总结(在 Mac 上):
第一步,在 Pycharm 上获取最新的 Python(今天 2.7.11):Pycharm,找不到Python 2.7.11版
第2步,按照https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#download-and-setup
第3步,Pycharm--preference--project interpreter,安装最新版本的numpy,protobuf,6.Pycharm (Mac) 上的 Tensorflow 导入错误注意,安装时可能需要点击指定版本".
第4步,Pycharm--首选项--项目解释器,安装最新版本的tensorflow(v 0.8.0今天).注意,如果没有找到 v0.8.0,那么可能需要手动点击Manage Repositories",然后添加第 2 步的链接(https://storage.googleapis.com/tensorflow/mac/tensorflow-0.8.0-py2-none-any.whl)
这些步骤在我的两台 Mac 电脑上都运行良好.感谢贡献者在此过程中提供的所有帮助.
I was trying to use tensorflow in Pycharm IDE.
It seems that in Pycharm, it is one-click to install a package. It was very easy with bumpy. Now error occurs when I was trying to install tensorflow. Tensorflow was installed through terminal on Mac, as screenshot shows, using the command
sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.8.0-py2-none-any.whl (Refer to https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#pip-installation) Any suggestions ? Thanks.
To summarize (on Mac) :
Step 1, get latest Python (2.7.11 today) on Pycharm: Pycharm, can not find Python version 2.7.11
Step 2, follow "Pip Installation" of https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#download-and-setup
Step 3, Pycharm-- preference -- project interpreter, install the latest versions of numpy, protobuf, six. Tensorflow import error on Pycharm (Mac) Note, maybe have to click the "specify version" when installing.
Step 4, Pycharm-- preference -- project interpreter, install the latest version of tensorflow (v 0.8.0 today). Note, if not find v0.8.0, then maybe have to manually click "Manage Repositories" and then add the link of Step 2 (https://storage.googleapis.com/tensorflow/mac/tensorflow-0.8.0-py2-none-any.whl)
These steps worked well on both Mac computers of mine. Thanks for all helps during the procedure from contributors.
这篇关于在 Pycharm (Mac) 上安装 tensorflow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!