Reputation: 21
After I entered the command: pip install pandas
on the pycharm terminal, I got the following error:
-------------------------------------------------------------------------------------------------
ERROR: Could not install packages due to an OSError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\User\\A
ppData\\Local\\Temp\\pip-req-tracker-7q66q0yu\\6db4818fba87cd56fb7ea2ff3e7b500fdbaefe4fef5779e374622b60'
Consider using the `--user` option or check the permissions.
-------------------------------------------------------------------------------------------------
I would be grateful if I could get help in fixing this error.
Upvotes: 1
Views: 1487
Reputation: 6214
You need to run the command prompt or terminal as an administrator. This will give you permission to install packages. And also you need to upgrade pip to the latest version - python -m pip install –upgrade pip
in cmd or terminal.
And If this does not work for you then, you can try pip install --user pygame
.
I got this from this post
Upvotes: 1