[英]How to solve OSError: [WinError 2] Impossibile finding specified file: 'c:\\python39\\Scripts\\chardetect.exe'
as stated in the title, everytime i try to install something via pip, at the end of the installation it gives me an error如标题所述,每次我尝试通过 pip 安装某些东西时,在安装结束时都会出现错误
WARNING: Failed to write executable - trying to use.deleteme logic Rolling back uninstall of chardet Moving to c:\python39\lib\site-packages\chardet-4.0.0.dist-info警告:无法编写可执行文件 - 尝试使用.deleteme 逻辑回滚卸载 chardet 移动到 c:\python39\lib\site-packages\chardet-4.0.0.dist-info
from C:\Python39\Lib\site-packages~hardet-4.0.0.dist-info Moving to c:\python39\lib\site-packages\chardet从 C:\Python39\Lib\site-packages~hardet-4.0.0.dist-info 移动到 c:\python39\lib\site-packages\chardet
from C:\Python39\Lib\site-packages~hardet来自 C:\Python39\Lib\site-packages~hardet
ERROR: Could not install packages due to an OSError: [WinError 2] Impossibile trovare il file specificato: 'c:\python39\Scripts\chardetect.exe' -> 'c:\python39\Scripts\chardetect.exe.deleteme'*错误:由于 OSError 无法安装软件包:[WinError 2] Impossibile trovare il file specificato: 'c:\python39\Scripts\chardetect.exe' -> 'c:\python39\Scripts\chardetect.exe.deleteme'*
Already tried python -m pip install -U pip --user
But it says已经尝试过
python -m pip install -U pip --user
但它说
Requirement already satisfied: pip in c:\users\paolo\appdata\roaming\python\python39\site-packages (21.0.1)
I can't understand why and can't find anything on internet.我不明白为什么,在互联网上找不到任何东西。 Please Help!
请帮忙!
After the之后
python -m pip install -U pip --user
command, re-run the install.命令,重新运行安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.