我正在尝试在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吗?
答案 0 :(得分:0)
全部回答here
从头开始,确保满足所有依赖关系。
答案 1 :(得分:0)
我不完全确定我理解,但是PyQt在包装存储库中,所以
apt-get install python-qt4
对于Python 3:
apt-get install python3-pyqt4
应该安装它和依赖项吗?
(我会将此添加为评论,而不是答案,但我没有足够的代表这样做..)