简体   繁体   English

点安装张量流不起作用

[英]Pip install tensorflow not working

When I do pip install tensorflow, it says that there is no matching distribution.当我执行 pip install tensorflow 时,它说没有匹配的分布。 I already updated pip.我已经更新了pip。

(tfenv)pi@raspberrypi:~/Downloads/opencv-3.3.0-source/build $ pip install tensorflow
Collecting tensorflow
  Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
(tfenv)pi@raspberrypi:~/Downloads/opencv-3.3.0-source/build $ pip --version
pip 10.0.1 from /home/pi/.conda/envs/tfenv/lib/python3.4/site-packages/pip (python 3.4)

I get the same problem when I try install opencv through pip.当我尝试通过 pip 安装 opencv 时,我遇到了同样的问题。 I tried this command on another raspberry pi and everything works fine.我在另一个树莓派上尝试了这个命令,一切正常。

You need to have the latest version of pip in order to install tensorflow or openCV.你需要有最新版本的 pip 才能安装 tensorflow 或 openCV。 You can upgrade pip using the below command:您可以使用以下命令升级 pip:

python -m pip install --upgrade pip

After upgrading Pip, it should work fine.升级 Pip 后,它应该可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM