Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using Tensorflow with Anaconda and PyCharm on Windows

I am using Anaconda 4.3.1 64 Bit on Windows 10 64 Bit. I have successfully installed Tensorflow (CPU) according to this. The test program runs in the command line, but not in PyCharm. The problem is that it works only with activate tensorflow.

I followed the steps from Pycharm anaconda import tensor flow library issue ("You need to do these following steps:"). It seems now that tensorflow is loaded, but I get a new error:

ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try git clean -xdf (removes all files not under version control). Otherwise reinstall numpy.

How can I use TensorFlow in PyCharm? (BTW: Tensorflow works with PyCharm on my Fedora VM.)

Edit:

Can I use TensorFlow with Jupyter? When running "Jupyter (tensorflow)" from the Anaconda menu, a console window opens and immediately closes.

like image 995
user495236 Avatar asked May 19 '17 01:05

user495236


People also ask

Can I use both Anaconda and PyCharm?

Though they are independent tools, PyCharm and AnaConda can be used together for projects that can benefit from both tools. PyCharm is an IDE built to make it easier to write Python code, by providing a text editor and debugging, among other features. Anaconda is a Python distribution focused on data driven projects.

Can I use TensorFlow on PyCharm Windows?

For installing TensorFlow your system must be having 64-bit OS . For PyCharm firstly, go to file then settings. A pop-up window open then select Project Interpreter under projects. Now click on the plus sign(+) which is shown top of right side of new pop-up window.

Can PyCharm run TensorFlow?

Alternatively, you can run the pip install tensorflow command in your PyCharm terminal view that makes use of the PIP package manager: What is this?


1 Answers

When PyCharm is open: if you navigate to preferences: Project: Project Interpreter. You can there either create your own virtualenv (and then manually install the required packages) or make sure you have selected the anaconda python interpreter for your project.

like image 169
PdevG Avatar answered Oct 05 '22 04:10

PdevG