已解决ERROR: Could not find a version that satisfies the requirement opencv-python4.5.5.62A (from versi

已解决DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement opencv-python
4.5.5.62A (from versions: 3.1.0.0, 3.1.0.5, 3.2.0.7, 3.2.0.8, 3.3.0.9, 3.3.0.10, 3.3.1.11, 3.4.0.12, 3.4.0.14, 3.4.1.15, 3.4.2.16, 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 3.4.6.27, 3.4.7.28, 3.4.8.29, 3.4.9.31, 3.4.10.37, 4.0.0.21, 4.0.1.23, 4.0.1.24, 4.1.0.25, 4.1.1.26, 4.1.2.30, 4.2.0.32, 4.3.0.38)
ERROR: No matching distribution found for opencv-python==4.5.5.62A









Error report



A friend in the fan group ran into a problem and came to private message me, trying to install a third-party module with pip, but an error occurred (at that time, his heart was cold for a moment, and he came to me for help, and then successfully helped him solve it. , by the way, record it and hope it can help more friends who encounter this bug and will not solve it), the error code is as follows:


pip install opencv-python==4.5.5.62A

The screenshot of the error message is as follows :


insert image description here





error translation



The translation of the error message is as follows :

Summary: Python 2.7 reached end of life on January 1, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details on Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this feature.

Search index: https://pypi.tuna.tsinghua.edu.cn/simple

Error: Could not find a version that satisfies the requirement opencv-python==4.5.5.62A (from versions: 3.1.0.0, 3.1.0.5, 3.2.0.7, 3.2.0.8, 3.3.0.9, 3.3.0.10, 3.3.1.11, 3.4 .0.12, 3.4.0.14, 3.4.1.15, 3.4.2.16, 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 3.4.6.27, 3.4.7.28, 3.4.8.29, 3.4.9.31, 3.4.10.37 , 4.0.0.21, 4.0.1.23, 4.0.1.24, 4.1.0.25, 4.1.1.26, 4.1.2.30, 4.2.0.32, 4.3.0.38)

Error: No matching distribution found for opencv-python==4.5.5.62A





Error reason



Reason for error :

  • 1. The default version on the company's server is Python2.7. Due to version issues, Python2.7 is not maintained.
  • 2. The specified version of opencv-python installed is wrong

If you don’t have Python3 on your computer, you can install Python3 according to the following method. If you have Python3, just look at the solution! ! !




Download and install Python3



Official website download address: http://www.python.org/download/

1) There are default installation and custom installation, the custom installation selected here,Note: You must check the bottom environment configuration! ! !

insert image description here


2) Check some plug-ins and tools


insert image description here


3) Modify the installation path


insert image description here


4) After the installation is complete, click Close


insert image description here

5) After the installation is successful, open the command prompt window (win+R, enter cmd and press Enter), and the version number is displayed after typing python, indicating that the installation is successful


insert image description here





Solution



When both Python2 and Python3 exist on the computer, the Python3 pip installation command is as follows:

pip3 install 包名

opencv-python installation command:

pip3 install opencv-python==4.3.0.38

The above is the solution to the cause of this error. Welcome to leave a message in the comment area to discuss whether it can be solved.If it is useful, please like and collect the article. Thank you for your support. The blogger has the motivation to keep recording the problems encountered.!!!

Thousands of full-stack VIP Q&A group to contact bloggers to help solve errors

Due to the limited time and energy of bloggers, there are too many private messages every day, and there is no way for every fan to reply in time, so VIP fans are given priority to reply. You can enter the thousand-person full stack by subscribing to the time-limited 9.9 paid column "100 Days Mastering Python from Getting Started to Employment" VIP answering group, get priority answering opportunities (code guidance, remote service), free prostitution 80G learning materials spree, column subscription address: https://blog.csdn.net/yuan2019035055/category_11466020.html

  • Advantages :The author gives priority to answering opportunities (code guidance, remote service), and many bigwigs in the group can hold together to keep warm (big factory internal promotion opportunity). This column is a complete set of teaching specially prepared for students with zero foundation and those who need advanced improvement , From 0 to 100, continue to advance and deepen, and there will be practical projects in the follow-up, so you can easily deal with interviews!

  • Column benefits :Resume guidance, internal referral for recruitment, physical book delivery every week, 80G full-stack learning videos, 300 IT e-books: Python, Java, front-end, big data, database, algorithm, crawler, data analysis, machine learning, interview question bank, etc.

  • Note : If you want to get a timely reply, communicate and learn with the big guys, after subscribing to the column, private message the blogger to enter the VIP Q&A group with thousands of peopleinsert image description here
    insert image description here

Free information acquisition, more fan benefits, follow the official account below to obtain

insert image description here

Guess you like

Origin blog.csdn.net/yuan2019035055/article/details/129050295