Python: Tensorflow on Windows 10 in PyCharm




[ad_1]

How to get Python TensorFlow working in Windows with PyCharm: UPDATE: issue with pip – see below.
======================================================
Anaconda: https://www.continuum.io/downloads

“pip install” in pycharm on terminal:
import pip
pip.main([‘install’, ‘tensorflow’])

****
UPDATE: There are some issues with pip3 (https://github.com/pypa/pip/issues/5240), a work around is to use:
from pip._internal import main
main([‘install’, ‘tensorflow-gpu’])
****
UPDATE:TensorFlow Download and Setup (to test installation): https://www.tensorflow.org/versions/r0.10/get_started/os_setup (OUTDATED)

Instead, I recommend trying the example code here: https://www.tensorflow.org/tutorials/quickstart/beginner

Source


[ad_2]

Comment List

  • Melissa Dale
    November 28, 2020

    ****PIP ERROR****: pip 10 has moved the main packages – if you run into errors when using pip.main, a work around is to use:
    from pip._internal import main
    main(['install', 'tensorflow'])

    More info in the video description.

  • Melissa Dale
    November 28, 2020

    OSError: [WinError 193] %1 is not a valid Win32 application

    I am getting this error,Please help.

  • Melissa Dale
    November 28, 2020

    God is a woman. I was trying to do that for, like, 2 hours. Only made it because of you!!!!!!! <3 Thanks!

  • Melissa Dale
    November 28, 2020

    Didn't worked out

  • Melissa Dale
    November 28, 2020

    For missing DLL file, you will actually have to install Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017, and 2019. Once you've installed this, and follow Melissa's steps, TensorFlow will actually work on PyCharm.

  • Melissa Dale
    November 28, 2020

    TENSORFLOW link provided has been unavailable, please check it! Many thanks

  • Melissa Dale
    November 28, 2020

    I am getting this error Failed to load the native TensorFlow runtime. Any help would be appreciated.

  • Melissa Dale
    November 28, 2020

    thanks a lot

  • Melissa Dale
    November 28, 2020

    hi Melissa
    firstly thanks a lot for your useful video. I tried and it was ok. then I reinstalled the pycharm and anaconda and it doesnt work anymore. the error is:
    >>> from pip._internal import main

    main(['install', 'tensorflow'])
    Traceback (most recent call last):

    File "<input>", line 1, in <module>

    TypeError: 'module' object is not callable.

    I'm wondering if you can help me with that.
    cheers
    amir

  • Melissa Dale
    November 28, 2020

    After 5 tutorials, this was the only one that worked for me in PyCharm. Thanks!!!!

  • Melissa Dale
    November 28, 2020

    awesome

  • Melissa Dale
    November 28, 2020

    So it was that easy !
    Thanks a lot !

  • Melissa Dale
    November 28, 2020

    You're awesome. Very thorough! thanks!

  • Melissa Dale
    November 28, 2020

    Thanks so much!

  • Melissa Dale
    November 28, 2020

    Hi Mellisa, the following errors appear when trying to run the tensorflow program, "ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed". and another error shows, "Failed to load the native TensorFlow runtime".

  • Melissa Dale
    November 28, 2020

    As per my knowledge, Tensorflow is not supported in python 3.7. And the latest version of Anaconda contains 3.7 python. So what do I need to install Tensorflow with anaconda??

  • Melissa Dale
    November 28, 2020

    Can you make a video for importing csv data file into tensortflow? CSV file contains columns wise data..

  • Melissa Dale
    November 28, 2020

    Traceback (most recent call last):
    File "<input>", line 1, in <module>
    AttributeError: module 'pip' has no attribute 'main'

  • Melissa Dale
    November 28, 2020

    Thank you very much, this almost got me there.
    However I should add this.
    I am using windows 7. For some reason this didn't work on python 3.6. I changed my python version to 3.5 (in settings of environment) and it worked.

  • Melissa Dale
    November 28, 2020

    Thank you for sharing this video. Before seeing your video, I had spent almost 5-6 hours in figuring out how to make tensorflow work in pycharm on windows. Followed your video and it worked. Thanks a lot. !!!

Write a comment