我正在尝试在 Ubuntu 上安装 PyQt。我正在处理的障碍列表太长,无法在此处列出。我目前试图克服的障碍是:
(myvenv)% cd ~/.virtualenvs/myvenv/build/pyqt
(myvenv)% python ./configure.py
Traceback (most recent call last):
File "./configure.py", line 32, in <module>
import sipconfig
好的,让我们安装sipconfig
...
(myvenv)% pip install SIP
Downloading/unpacking SIP
Downloading sip-4.14.8-snapshot-02bdf6cc32c1.zip (848Kb): 848Kb downloaded
Running setup.py egg_info for package SIP
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or directory: '/home/yt/.virtualenvs/myvenv/build/SIP/setup.py'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or directory: '/home/yt/.virtualenvs/myvenv/build/SIP/setup.py'
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/yt/.virtualenvs/myvenv/build/SIP
Storing complete log in /home/yt/.pip/pip.log
到目前为止,我发现安装 SIP 的唯一方法是
python configure.py
make
sudo make install
但是,在 Ubuntu 上,我尝试通过 进行每次安装apt-get
,所以我不愿意遵循上面的方法。
我还能如何安装 SIP?