Python Anaconda2 Install OpenCV2’s vast water

2022-12-22   ES  

Record a pit that you have stepped on many times. Basically, if you upgrade the PIP, you will not be installed without paying attention to it.

prompt pip version too low, always subconsciously inputpip install –upgrade pip==xx.xx.xx, the error reported by the happy hearing (the following figure is taking the level as an example, the same result with this code is also the same).
升级后报错
Report an error:

Error: Could not instant packages due to an environmenterror: [Winerror 5] Reject access. : ‘E: \ Anaconda3 \ scripts \ pip.exe’
Consider using the --user option or check the permissions.

Then add another time to try. Try again.
再次报错
Continue to report an error:

Cannot open E:\Anaconda3\Scripts\pip-script.py

Obviously only add only one -USER, because at the time of upgrading, not only failed installation, but also uninstalled the original PIP.

Uninstalling pip-20.2.3:

According to a lot of posts found online, a code can be solved, as follows:

easy_install pip

This is really useful, but I do n’t run directly every time I run. The result is as shown below.

Tips:

error: Couldn’t find a setup script in C:\Users\11720\pip

Although the directory where Easy_install.exe is located in the environment variables, it still fails. There is no way, manually jump over.
CD to the scripts folder under the Python installation path, the author used by the author, so it is E: \ Anaconda3 \ scripts

问题解决
At this point, the problem is solved.

Try it and add -User’s Upgrade, the result is as shown below:

在这里插入图片描述
Successful, remember to upgrade the PIP to add -User!

If you need to reprint, please mark the source.

source

Related Posts

mysql data type

[Basic Tutorial] BP neural network

02-title, paragraph, code Sismphus

HSSFWORKBOOK export data to Excel file

Python Anaconda2 Install OpenCV2’s vast water

Random Posts

vs2015 64 -bit system under Mapwingis.ocx configuration

Android adds bitmap to the overlay of View

5 Team-Team Mission 5: Project Summary CHUU

qtp test Codejock Xtreme Suite control

python scrapy Explanation