[英]Can't install tensorflow on pycharm?
我最近安装了pycharm 。 我在编码时也使用不同的库。 我能够安装 Numpy、Pandas 等。但是当我尝试安装张量流时,我收到一条错误消息,
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
我有最新的pip(20.1.1)和最新的 pycharm 版本。 我使用不是最新的 python 3.8.1。 我不知道这是否是问题,因为它符合要求。
首先尝试使用pip
命令。 您将获得有关失败的更多详细信息。
pip install pandas
还要检查您在 pycharm 中使用的是哪个 python 版本。 我建议你配置一个virtualenv。
尝试这个,
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-2.2.0-cp38-cp38-macosx_10_14_x86_64.whl
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.2.0-cp38-cp38-win_amd64.whl
I had the same issue, it's because the latest version of Python matches with Tensorflow 2.x, and these versions are not supported by pip installation ( venv ), you better install Anaconda and create a portable environnement that you can use on multiple projects,安装 Tensorflow 会更容易
conda install tensorflow
或者您可以使用 Anaconda Navigator 进行 gui 界面包安装
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.