Error when installing Tensorflow - Python 3.8

后端 未结 7 1914
借酒劲吻你
借酒劲吻你 2020-12-31 11:47

I\'m new to programming and following a course where I must install Tensorflow. The issue is that I\'m using Python 3.8 which I understand isn\'t supported by Tensorflow.

相关标签:
7条回答
  • 2020-12-31 12:12

    Worked on Python 3.8.2 (default, Mar 05 2020, 18:58:42) [GCC] on linux

    pip3 install --upgrade tf-nightly
    
    0 讨论(0)
  • 2020-12-31 12:16

    You should always use venv because by default every project on your system will use these same directories to store and retrieve site packages (third party libraries). At first glance, this may not seem like a big deal, and it isn’t really, for system packages (packages that are part of the standard Python library), but it does matter for site packages.

    Consider the following scenario where you have two projects: ProjectA and ProjectB, both of which have a dependency on the same library, ProjectC. The problem becomes apparent when we start requiring different versions of ProjectC. Maybe ProjectA needs v1.0.0, while ProjectB requires the newer v2.0.0.

    You can also take a look at anaconda, it’s the most populasr data sciencie platform and will be easy for you install tensorflow and jupiter notebook in just 2 clicks. Anaconda

    0 讨论(0)
  • 2020-12-31 12:19

    Uninstall all your python versions and use the latest anaconda.

    $ conda create --name tensorflow python=3.5
    

    This way you create a virtual environment with python 3.5 which is supported by tensorflow.

    So now you can install it.

    $ activate tensorflow
    (tensorflow) $ pip install tensorflow
    
    0 讨论(0)
  • 2020-12-31 12:26

    Tensorflow is only supported until python 3.7 as of now. You can check it here: https://www.tensorflow.org/install/pip

    But there is a way to install it on Python3.8, just run the below command that will do your job:

    python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
    

    This command work on mac and windows both, I haven't tested on Linux.

    0 讨论(0)
  • 2020-12-31 12:28

    it would have been nice if you would have the share the error screenshot though as per i got the case

    tensorflow work in both 3.8 and 3.6 just you have to check that you have 64bit version not 32 bit

    you can acess both version from thier respective folder no need to install a venv

    0 讨论(0)
  • 2020-12-31 12:29

    Python Versions 3.5 - 3.8 are supported now.

    You can verify on this page: https://www.tensorflow.org/install/pip

    0 讨论(0)
提交回复
热议问题