刚刚安装了Python,我尝试安装的任何库中获得WinError 32

发布于 2025-01-21 03:56:20 字数 328 浏览 1 评论 0原文

我刚刚在工作机器上安装了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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

梦冥 2025-01-28 03:56:20

尝试重新启动您的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?

你对谁都笑 2025-01-28 03:56:20

重新启动计算机,升级PIP,然后尝试使用非官方的Windows二进制文件安装pandas进行Python扩展软件包,或者

pip install --user <package_name> --no-cache-dir

查看“许可”:[WinError 32]该过程无法访问该过程,因为它是由另一个过程使用的。

Restart your computer, Upgrade pip and try installing pandas with Unofficial Windows Binaries for Python Extension Packages or

pip install --user <package_name> --no-cache-dir

Also take a look at PermissionError: [WinError 32] The process cannot access the file because it is being used by another process.

咿呀咿呀哟 2025-01-28 03:56:20
  1. 卸载Python

  2. 删除C:/User/user1/AppData/Local/Programs/Python/Python39C:/User/user1/AppData/Local/Programs/中的Lib文件夹Python/Python310

  3. 重新安装python。

  1. Uninstall python

  2. Delete the Lib folder in C:/User/user1/AppData/Local/Programs/Python/Python39 and C:/User/user1/AppData/Local/Programs/Python/Python310

  3. Re-install python.

陈独秀 2025-01-28 03:56:20

您很可能已经以管理员身份安装了 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.

奢欲 2025-01-28 03:56:20

重新启动计算机以停止当前正在运行的使用临时文件的进程。重新启动后,清除系统上的临时文件:

  1. windows 键 + R
  2. 输入 %temp% 按 Enter
  3. 选择所有临时文件并删除它们

然后您可以重新安装 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:

  1. Press windows key + R
  2. Type %temp% hit enter
  3. Select all temps files and delete them

You can then reinstall python and run the pip command and install your desired libraries.

梦醒灬来后我 2025-01-28 03:56:20

首先,重新启动您的系统 - 可能会停止访问临时文件的任何内容。如果您想确定,您还可以删除所述临时文件。如果失败了,则将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.

微暖i 2025-01-28 03:56:20

最好的方法是:

  1. 卸载 python3
  2. 当您以“管理员”身份打开命令提示符时重新安装 python3。

请参阅此处了解更多详细信息和配置。 Windows 上的 pip 安装访问被拒绝

The best way is to:

  1. Uninstall python3
  2. Reinstall python3 when you open Command Prompt as 'administrator'.

Refer to here for further details and configs. pip install access denied on Windows

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文