How to install Tensorflow with Python3.8

☆樱花仙子☆ 提交于 2020-05-23 21:12:27

问题


Whenever I try to install tensorflow with pip on python3.8 I get that tensorflow is not found. I have realized later on that it is not supported with python3.8, but I don't know how to make it run.


回答1:


As you mentioned, it is currently not supported by python3.8, but python3.7.

You want to have virtualenv installed. You also need python3.7. Then you can just start a virtualenv with 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

EDIT

Since some people are mentioning that the post is asking on how to install Tensorflow on python3.8...

According to the GitHub issue:

TF 2.2.0-rc2 has been released and Python 3.8 wheels are available to install. https://pypi.org/project/tensorflow/2.2.0rc2/#files

So, you can just

pip install tensorflow==2.2.0rc2

As of Mar 28, 2020.




回答2:


Tensorflow does not support at the moment python 3.8 the last one tensorflow support is 3.7, a solutio for that is to install python 3.7, this will not affect your python codes, python 3.7 and 3.8 are very similar but right now python 3.7 has more support by other frameworks like tesorflow, soon python 3.8 will have more support, and that´s when you can install tensorflow for python 3.8, and you will use python 3.8



来源:https://stackoverflow.com/questions/59809495/how-to-install-tensorflow-with-python3-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!