首页 > 解决方案 > 由于 EnvironmentError 无法安装软件包:[WinError 32] 该进程无法访问该文件,因为它正被另一个进程使用

问题描述

最近我试图在 vs 代码上的 python 中安装语音识别,但它显示了一个错误,我尝试使用命令提示符但它不起作用。这是代码

'PS C:\Users\Lenovo\Desktop\python> pip install speechRecognition      
 Collecting speechRecognition
 Using cached SpeechRecognition-3.8.1-py2.py3-none-any.whl (32.8 MB)
 ERROR: Could not install packages due to an EnvironmentError: [WinError 32] The process cannot 
 access the file because it is being used by another process: 
 'C:\\Users\\Lenovo\\AppData\\Local\\Temp\\pip-req-tracker- 
 e9sg4n2d\\7fd58c0c5ee7cc27d392ed0613487ea8ab5f15fb7f011361ee8a8fae'
 Consider using the `--user` option or check the permissions.'

标签: pythonpip

解决方案


尝试

python -m pip install speechRecognition

推荐阅读