pip - process cannot access the file because it is being used by another process

Viewed 47

3rd week learning python. I am trying to pip install pyperclip. When I run this in the command prompt I am getting a permission error -

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\my_user\AppData\Local\Temp\tmpybqp3z0q'

I can go into the folder Temp and delete tmpybqp3z0q, but when I run the command prompt again it will create a new file in this folder and give me the same error, now referencing the newly created file.

1 Answers

Run your terminal as an administrator and run

python -m pip install –upgrade pip

then run

pip install --user pyperclip

Related