Is it possible to add PyQt4/PySide packages on a Virtualenv sandbox?

后端 未结 13 1943
失恋的感觉
失恋的感觉 2020-11-28 20:16

I\'m using Virtualenv with profit on my development environment with web.py, simplejson and other web oriented packages.
I\'m going to develop

13条回答
  •  自闭症患者
    2020-11-28 20:36

    Let's assume your virtualenv is named myProject and you're using virtualenvwrapper. A Unix platform is also assumed.

    $ workon myProject
    $ pip install --no-install SIP
    $ pip install --no-install PyQt
    $ cd ~/.virtualenvs/myProject/build/SIP
    $ python configure.py
    $ make
    $ make install
    $ cd ~/.virtualenvs/myProject/build/PyQt
    $ python configure.py
    $ make
    $ make install
    $ cd && rm -rf ~/.virtualenvs/myProject/build # Optional.
    

提交回复
热议问题