TensorFlow学习之 实战环境Pycharm(Mac)安装

 

Pycharm 官网地址:https://www.jetbrains.com

有两个版本:

社区版本和商业版本

商业版本收费是:首年收费199美金

开始学习阶段,社区版本足够了。

首先通过官网下载对应的pycharm版本

然后配置tensor flow相关信息,具体如下(引用自stack overflow):

This is a working solution for me, first create a virtualenv from Pycharm and then install tensorflow there:

  1. In Pycharm, Preferences -> Project interpreter -> Create VirtualEnv -> give the virtualenv a name and location of your choice, and select “inherit global site-packages” option -> OK. create virtualenv
  2. In command line, install tensorflow in the virtualenv location you created in Step 1. For the above case, the location is ~/tensorflow_pycharm, therefore, run command virtualenv --system-site-packages ~/tensorflow_pycharm
  3. In Pycharm, select the created project interpreter, and select the tensorflow package, double click to install the package.
  4. If Step 3 is successful, set run configuration, and try run a sample program. run configsample program

 

发表评论

电子邮件地址不会被公开。