简体   繁体   中英

Cannot install packages using pip

When i tried to install openCV using pip3 install opencv-python i got this error

Could not find a version that satisfies the requirement opencv-python (from versions: ) No matching distribution found for opencv-python

i have tried upgrading pip using

pip install --upgrade pip 

and

curl https://bootstrap.pypa.io/get-pip.py | python

none of them helped me and pip is up to date tried to download and compile opencv manually gives me bunch of errors

python version -2.7,3.6.2

pip version- up to  date

raspberry pi 2

https://pypi.org/project/opencv-python/说:“请注意,轮子(尤其是manylinux)格式目前不支持正确的ARM体系结构,因此PyPI中没有基于ARM的平台的软件包。但是,opencv-python Raspberry Pi的软件包可以在https://www.piwheels.org/找到。“

Normally this information means that your python version or OS version not compatible with any openCV version which pip can find on the internet.

Could not find a version that satisfies the requirement opencv-python (from versions: ) No matching distribution found for opencv-python

So, please check your python version (include 32bit or 64bit) and OS type, version, and then try pip again. I use python3.6.5 32bit(virtualenv), windows 10 64bit install openCV succeed.

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