win7,python3.6环境。python小白想装pyQT5,需要先装SIP,
看到riverbank上说可以直接用 pip3install
https://www.riverbankcomputing.com/software/sip/download
Wheels are provided for Python v3.5 and later for 64-bit Linux, OS X and 32-bit and 64-bit Windows. These include the sip extension module but not the code generator.
So long as you are using a supported version of Python you can install SIP from PyPi by running:
pip3 install SIP
结果出了下面错误,不知道pyd是个什么文件,并且目录分隔为什么是\\而不是\
C:\Program Files\Python36\Lib\site-packages\pip>pip3 install SIP
Collecting SIP
Using cached sip-4.19.1-cp36-none-win_amd64.whl
Installing collected packages: SIP
Exception:
Traceback (most recent call last):
File "c:\program files\python36\lib\site-packages\pip\basecommand.py", line 21
5, in main
status = self.run(options, args)
File "c:\program files\python36\lib\site-packages\pip\commands\install.py", li
ne 342, in run
prefix=options.prefix_path,
File "c:\program files\python36\lib\site-packages\pip\req\req_set.py", line 78
4, in install
**kwargs
File "c:\program files\python36\lib\site-packages\pip\req\req_install.py", lin
e 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "c:\program files\python36\lib\site-packages\pip\req\req_install.py", lin
e 1064, in move_wheel_files
isolated=self.isolated,
File "c:\program files\python36\lib\site-packages\pip\wheel.py", line 345, in
move_wheel_files
clobber(source, lib_dir, True)
File "c:\program files\python36\lib\site-packages\pip\wheel.py", line 323, in
clobber
shutil.copyfile(srcfile, destfile)
File "c:\program files\python36\lib\shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'c:\\program files\\python36\\Lib
\\site-packages\\sip.pyd'