coffeeguy
coffeeguy

Reputation: 11

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

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.

Upvotes: 1

Views: 1002

Answers (1)

mguddeti
mguddeti

Reputation: 466

Run your terminal as an administrator and run

python -m pip install –upgrade pip

then run

pip install --user pyperclip

Upvotes: 1

Related Questions