最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - My terminal throws an OSError every time I try to install packages through pip - Stack Overflow

programmeradmin0浏览0评论

I am trying to install some Python packages using pip.

pip install transformers torch flask nltk flask_cors pyttsx3 vosk SpeechRecognition

Every time I try to install the packages, I get an OSError.

ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'C:\\Python312\\Scripts\\normalizer.exe' -> 'C:\\Python312\\Scripts\\normalizer.exe.deleteme'

I am trying to install some Python packages using pip.

pip install transformers torch flask nltk flask_cors pyttsx3 vosk SpeechRecognition

Every time I try to install the packages, I get an OSError.

ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'C:\\Python312\\Scripts\\normalizer.exe' -> 'C:\\Python312\\Scripts\\normalizer.exe.deleteme'
Share Improve this question edited Feb 5 at 19:22 Ifeanyi Idiaye 1,1107 silver badges24 bronze badges asked Feb 5 at 13:38 mdotmdot 356 bronze badges 1
  • Most answers at stackoverflow.com/search?q=%5Bpip%5D+deleteme suggest to run terminal as Admin or add option --user: pip install --user transformers torch flask nltk flask_cors pyttsx3 vosk SpeechRecognition – phd Commented Feb 5 at 14:35
Add a comment  | 

1 Answer 1

Reset to default 1

I have experienced the same problem, and this worked for me:

  • Right-click on your terminal
  • Select "Run as Administrator"
  • Run pip install <your-python-packages>

This should install all the packages using pip. Another thing you could do is to update pip by running:

python -m pip install --upgrade pip

发布评论

评论列表(0)

  1. 暂无评论