Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyQt5 pip installation error 13. Permission denied

Tags:

python

pip

I'm trying to install PyQt5 with the command pip install PyQt5

but I get an error instead.

I use Python 3.5, windows 10.

error:

C:\WINDOWS\system32>pip install PyQt5

Collecting PyQt5
  Using cached PyQt5-5.7-cp35-none-win_amd64.whl
Collecting sip (from PyQt5)
  Using cached sip-4.18.1-cp35-none-win_amd64.whl
Installing collected packages: sip, PyQt5
Exception:
Traceback (most recent call last):
  File "c:\anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "c:\anaconda3\lib\site-packages\pip\commands\install.py", line 317, in run
    prefix=options.prefix_path,
  File "c:\anaconda3\lib\site-packages\pip\req\req_set.py", line 742, in install
    **kwargs
  File "c:\anaconda3\lib\site-packages\pip\req\req_install.py", line 831, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "c:\anaconda3\lib\site-packages\pip\req\req_install.py", line 1032, in move_wheel_files
    isolated=self.isolated,
  File "c:\anaconda3\lib\site-packages\pip\wheel.py", line 346, in move_wheel_files
    clobber(source, lib_dir, True)
  File "c:\anaconda3\lib\site-packages\pip\wheel.py", line 324, in clobber
    shutil.copyfile(srcfile, destfile)
  File "c:\anaconda3\lib\shutil.py", line 115, in copyfile
    with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'c:\\anaconda3\\Lib\\site-packages\\sip.pyd'
like image 693
vandelay Avatar asked Jul 27 '16 19:07

vandelay


1 Answers

With different Windows (8.2) and different PyQt (4-4) I had the same problem.

What worked for me was: run task manager and see if there are any Python tasks running. If there are (there were for me) kill them, as they (probably) lock the sip.pyd file. Then run pip install again ("successfully installed" in my case).

like image 72
user6904670 Avatar answered Sep 30 '22 20:09

user6904670