Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51792

Re: PyQt5 and virtualenv problem

From Pete Forman <petef4+usenet@gmail.com>
Newsgroups comp.lang.python
Subject Re: PyQt5 and virtualenv problem
Date 2013-08-02 11:11 +0100
Organization A noiseless patient Spider
Message-ID <86a9l0mmgl.fsf@gmail.com> (permalink)
References <39e192a0-779e-4be6-b08f-950ed1c200ac@googlegroups.com>

Show all headers | View raw


"D. Xenakis" <gouzounakis@hotmail.com> writes:

> I tried to install SIP and PyQt5 using the pip install command but it
> didnt work on both cases (i was getting errors), so i finally
> installed them using the windows installers provided in
> riverbankcomputing website.
> My problem though here is that whenever i try to create a new
> virtualenv enviroment, those packages are not included and i cant
> import them. How can i add PyQt5 to my new virt enviroment? What is
> the logic behind this problem so i understand whats going on here?
>
> Thx in advance

I can't comment on PyQt5 but I can say how to use PyQt4 with virtualenv
on Windows.

The Riverbank installers do not work in a virtualenv. However PySide
wraps PyQt4 in a compatible installer. To use the installer it should be
invoked with easy_install rather than pip install. Having installed it,
pip uninstall works.

https://pypi.python.org/pypi/PySide


The Riverbank installer can install PyQt5 to your master copy of Python.
You can then use the --system-site-packages flag when creating a
virtualenv. The default behavior of virtualenv changed in 1.7
(2011-11-30) from including system packages to excluding them.

-- 
Pete Forman

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

PyQt5 and virtualenv problem "D. Xenakis" <gouzounakis@hotmail.com> - 2013-07-27 16:49 -0700
  Re: PyQt5 and virtualenv problem "D. Xenakis" <gouzounakis@hotmail.com> - 2013-07-29 06:00 -0700
    Re: PyQt5 and virtualenv problem "D. Xenakis" <gouzounakis@hotmail.com> - 2013-07-29 19:36 -0700
  Re: PyQt5 and virtualenv problem "D. Xenakis" <gouzounakis@hotmail.com> - 2013-08-01 17:07 -0700
  Re: PyQt5 and virtualenv problem Pete Forman <petef4+usenet@gmail.com> - 2013-08-02 11:11 +0100

csiph-web