[英]WinError 2 cannot find file: 'c:\\python39\\Scripts\\sacremoses.exe' -> 'c:\\python39\\Scripts\\sacremoses.exe.deleteme'
[英]How to solve OSError: [WinError 2] Impossibile finding specified file: 'c:\\python39\\Scripts\\chardetect.exe'
如標題所述,每次我嘗試通過 pip 安裝某些東西時,在安裝結束時都會出現錯誤
警告:無法編寫可執行文件 - 嘗試使用.deleteme 邏輯回滾卸載 chardet 移動到 c:\python39\lib\site-packages\chardet-4.0.0.dist-info
從 C:\Python39\Lib\site-packages~hardet-4.0.0.dist-info 移動到 c:\python39\lib\site-packages\chardet
來自 C:\Python39\Lib\site-packages~hardet
錯誤:由於 OSError 無法安裝軟件包:[WinError 2] Impossibile trovare il file specificato: 'c:\python39\Scripts\chardetect.exe' -> 'c:\python39\Scripts\chardetect.exe.deleteme'*
已經嘗試過python -m pip install -U pip --user
但它說
Requirement already satisfied: pip in c:\users\paolo\appdata\roaming\python\python39\site-packages (21.0.1)
我不明白為什么,在互聯網上找不到任何東西。 請幫忙!
之后
python -m pip install -U pip --user
命令,重新運行安裝。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.