2

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
Strange
  • 314
  • 1
  • 4
  • 15
  • 1
    Possible duplicate of [pandas installation error using pip installer](https://stackoverflow.com/q/54194427/2311167) – Adrian W Apr 24 '22 at 21:19
  • 1
    Possible duplicate of [Error while trying to install pandas through pip through pycharm](https://stackoverflow.com/q/71859327/2311167) – Adrian W Apr 24 '22 at 21:22

7 Answers7

0

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?

NoBlockhit
  • 369
  • 2
  • 15
0

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.

David Kariuki
  • 1,522
  • 1
  • 15
  • 30
0
  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.

Kovy Jacob
  • 489
  • 2
  • 16
0

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.

user3732793
  • 1,699
  • 4
  • 24
  • 53
0

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

General Grievance
  • 4,555
  • 31
  • 31
  • 45
TRIPL9
  • 1
0

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.

Jasmeet
  • 26
  • 4
0

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.

Azathoth
  • 33
  • 5