刚刚安装了Python,我尝试安装的任何库中获得WinError 32
我刚刚在工作机器上安装了Python 3.10。我去了PIP安装pandas,并在AppData Temp文件夹中的临时文件上遇到了Win32错误。我已经尝试了其他库和相同的错误。试图卸载并重新安装并遇到相同的错误。另外,试图以管理员的身份运行CMD,没有更好的选择。
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: C:\\Users\\user\\AppData\\Local\\Temp\\tmp1b78532k
I just installed Python 3.10 on my work machine. I went to pip install pandas and got a Win32 error on a temp file within the AppData Temp Folder.I have tried with other libraries and same error. Tried to uninstall and reinstall and got the same error. Also, tried to run CMD as admin and no better.
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: C:\\Users\\user\\AppData\\Local\\Temp\\tmp1b78532k
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
尝试重新启动您的Machiene,以停止访问该文件或删除文件本身的过程。这应该是安全的,因为它是暂时的。您确定您已安装了PIP3.10吗?
Try to restart your machiene to stop the process accessing that file or delete the file itself. This should be safe because it is temporary. And are you sure that you pip3.10 installed?
重新启动计算机,升级PIP,然后尝试使用非官方的Windows二进制文件安装pandas进行Python扩展软件包,或者
查看“许可”:[WinError 32]该过程无法访问该过程,因为它是由另一个过程使用的。
Restart your computer, Upgrade pip and try installing pandas with Unofficial Windows Binaries for Python Extension Packages or
Also take a look at PermissionError: [WinError 32] The process cannot access the file because it is being used by another process.
卸载Python
删除
C:/User/user1/AppData/Local/Programs/Python/Python39
和C:/User/user1/AppData/Local/Programs/中的Lib文件夹Python/Python310
重新安装python。
Uninstall python
Delete the Lib folder in
C:/User/user1/AppData/Local/Programs/Python/Python39
andC:/User/user1/AppData/Local/Programs/Python/Python310
Re-install python.
您很可能已经以管理员身份安装了 python,因此您的帐户无权执行您想要的操作。
最好的解决方案是让 winpython 可移植并将其放入工作文件夹中。
you have very probably installed python as administrator therefore your account does not have permissions to do what you want.
Best solution is to get winpython portable and put it in a work folder.
重新启动计算机以停止当前正在运行的使用临时文件的进程。重新启动后,清除系统上的临时文件:
windows 键 + R
%temp%
按 Enter然后您可以重新安装 python 并运行pip 命令并安装所需的库。
Restart your computer to stop the currently running process that is using the temp file. After restart clear the temps files on your system:
windows key + R
%temp%
hit enterYou can then reinstall python and run the pip command and install your desired libraries.
首先,重新启动您的系统 - 可能会停止访问临时文件的任何内容。如果您想确定,您还可以删除所述临时文件。如果失败了,则将Python完全重新安装为Admin应该修复它。
First, restart your system - chances are that will stop whatever is accessing the temp file already. You could also delete said temp file afterwards if you want to be sure. If that fails, reinstalling Python altogether as admin should fix it.
最好的方法是:
请参阅此处了解更多详细信息和配置。 Windows 上的 pip 安装访问被拒绝
The best way is to:
Refer to here for further details and configs. pip install access denied on Windows