PermissionError: [WinError 32] Another program is using this file and the process cannot access it when installing opencv-python. : 'C:\\WI NDOWS\\TEMP\\pi

It was very bumpy when I installed opencv-python today. At the beginning of the installation, I reported an error:
ModuleNotFoundError: No module named 'skbuild'

Then I did what this blogger did: add link description

The method is as follows:

insert image description here

Then I run the command again:
pip install opencv-python
As a result, the following error occurred:

Failed building wheel for opencv-python
Failed cleaning build dir for opencv-python
insert image description here
PermissionError: [WinError 32] Another program is using this file and the process cannot access it. : 'C:\WINDOWS\TEMP\pip-build-3o7oaqyb\opencv-python\_skbuild\win-amd64-3.6\cmake-b
uild\CMakeFiles\CMakeConfigureLog.yaml'
insert image description here

Then I updated pip with the following command according to the yellow reminder subtitle:
python -m pip install --upgrade pip
Then I run the command pip install opencv-python again and the installation is successful:

insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/weixin_46235937/article/details/129766171