How to install TensorFlow with Python 3.8

前端 未结 3 573
名媛妹妹
名媛妹妹 2021-01-18 12:20

Whenever I try to install TensorFlow with pip on Python 3.8, I get the error that TensorFlow is not found. I have realized later on that it is not supported by Python 3.8.

3条回答
  •  醉酒成梦
    2021-01-18 13:19

    As of May 7, 2020, according to Tensorflow's Installation page with pip, Python 3.8 is now supported. Python 3.8 support requires TensorFlow 2.2 or later.

    You should be able to install it normally via pip.


    Prior to May 2020:

    As you mentioned, it is currently not supported by Python 3.8, but is by Python 3.7.

    You want to have virtualenv installed. You also need Python 3.7. Then you can just start a virtualenv with -p python3.7 and install it using pip like you did before:

    virtualenv --system-site-packages -p python3.7 DEST_DIR
    
    source ./DEST_DIR/bin/activate
    
    pip install --upgrade pip
    
    pip install --upgrade tensorflow
    

提交回复
热议问题