简体   繁体   English

如何解决 OSError:[WinError 2] 无法找到指定文件:'c:\\python39\\Scripts\\chardetect.exe'

[英]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.

相关问题 WinError 2 找不到文件:'c:\\\\python39\\\\Scripts\\\\sacremoses.exe' -> 'c:\\\\python39\\\\Scripts\\\\sacremoses.exe.deleteme' - WinError 2 cannot find file: 'c:\\python39\\Scripts\\sacremoses.exe' -> 'c:\\python39\\Scripts\\sacremoses.exe.deleteme' python,conda:错误:由于 OSError 无法安装软件包:[WinError 5] 访问被拒绝:'d:\\\\anaconda3\\\\envs\\\\python39\\\\scripts\\\\pip.exe' - python, conda: ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'd:\\anaconda3\\envs\\python39\\scripts\\pip.exe' Pipenv 错误“'C:\Python39\python.exe' 处没有 Python” - Pipenv error "No Python at 'C:\Python39\python.exe' " 没有名为 django-admin C:\Program Files\Python39\python3.exe 的模块 - No module named django-admin C:\Program Files\Python39\python3.exe Package pip (Python39) 的安装问题 - Package Installation problem with pip (Python39) OSError: [WinError 126] Python中找不到指定的模块 - OSError: [WinError 126] The specified module could not be found in Python Python OSerror [Winerror 126] - Python OSerror [Winerror 126] 操作系统错误:[WinError 126] 与 Python - OSError: [WinError 126] with Python 为什么 nix 找不到 python39? - Why doesn't nix find python39? OSError:[Errno 2]没有这样的文件或目录:'39' - OSError: [Errno 2] No such file or directory: '39'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM