'While installing pyinstaller, this occured : ERROR: Could not install packages due to an OSError: [WinError 2]
This is what occurs when installing the pyinstaller, please help me solve this.
pip install pyinstaller
Collecting pyinstaller
Using cached pyinstaller-4.8-py3-none-win_amd64.whl (2.0 MB)
Installing collected packages: pyinstaller
WARNING: Failed to write executable - trying to use .deleteme logic
ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file
specified: 'C:\Python310\Scripts\pyi-archive_viewer.exe' -> 'C:\Python310\Scripts\pyi-
archive_viewer.exe.deleteme'
Solution 1:[1]
I had a similar problem "Requirement already satisfied" with the Pillow module. I saw it in IDE, but it was broken. So I deleted the package folder in C:\Python310\Lib\site-packages and reinstalled it. You could try to do the same.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | JTs |
