简体   繁体   中英

Pip install tensorflow not working

When I do pip install tensorflow, it says that there is no matching distribution. I already updated 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. 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. You can upgrade pip using the below command:

python -m pip install --upgrade pip

After upgrading Pip, it should work fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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