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


Groups > comp.lang.python > #51792

Re: PyQt5 and virtualenv problem

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Pete Forman <petef4+usenet@gmail.com>
Newsgroups comp.lang.python
Subject Re: PyQt5 and virtualenv problem
Date Fri, 02 Aug 2013 11:11:22 +0100
Organization A noiseless patient Spider
Lines 31
Message-ID <86a9l0mmgl.fsf@gmail.com> (permalink)
References <39e192a0-779e-4be6-b08f-950ed1c200ac@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx05.eternal-september.org; posting-host="cdf6132ee4c43c2d1457a368e89c85c9"; logging-data="5314"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195CWw1eF7B2zF/SBH1lgHG"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.2 (windows-nt)
Cancel-Lock sha1:36Y1TSglVmxZ48SoIrll2MSpDTY= sha1:51pV7AV2vXwdu8ALZaOtYvBxCDI=
Xref csiph.com comp.lang.python:51792

Show key headers only | 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