我有一台新机器(Windows 10),我正在运行Python 2.7.13(64位)。我已经设法安装了几个模块,但现在我遇到了sip问题,在安装PyQt4之前我需要这个问题。
我下载了zip文件,将文件夹解压缩到C:\ Python27 \ Lib \ sip-4.19.3。 然后我打开一个cmd并cd进入C:\ Python27 \ Lib \ sip-4.19.3并运行:
python configure.py
我在cmd窗口中得到了这个:
C:\Python27\Lib\sip-4.19.3>python configure.py
This is SIP 4.19.3 for Python 2.7.13 on win32.
The SIP code generator will be installed in C:\Python27.
The sip module will be installed in C:\Python27\Lib\site-packages.
The sip.pyi stub file will be installed in C:\Python27\Lib\site-packages.
The sip.h header file will be installed in C:\Python27\include.
The default directory to install .sip files in is C:\Python27\sip.
Creating siplib\sip.h...
Creating siplib\siplib.c...
Creating siplib\siplib.sbf...
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...
C:\Python27\Lib\sip-4.19.3>
但是当我打开IDLE并尝试导入sip时,我得到:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import sip
ImportError: No module named sip
我打印了我的模块:
['pillow==4.0.0', 'pip==9.0.1', 'setuptools==28.8.0', 'wheel==0.30.0']
所以我知道它不在那里,但我不确定在运行configure.py之后应该怎么做。
我在网上看了一下,发现在运行configure.py之后我需要构建一个sip,所以我尝试在初始配置后输入make但是得到了这个:
C:\Python27\Lib\sip-4.19.3>make
'make' is not recognized as an internal or external command,
operable program or batch file.
C:\Python27\Lib\sip-4.19.3>
安装文档有点模棱两可,做了一些假设,所以我想知道在configure.py之后应该怎么做,因为我有点难过。
由于