Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install problem: Cannot import PyQt4 with --no-site-packages #23

Open
breznak opened this issue Feb 17, 2015 · 3 comments
Open

Install problem: Cannot import PyQt4 with --no-site-packages #23

breznak opened this issue Feb 17, 2015 · 3 comments

Comments

@breznak
Copy link
Member

breznak commented Feb 17, 2015

I am using virtualenv for python with --no-site-packages,
When I follow the readme instructions to install (manually) qt4, or this https://stackoverflow.com/questions/17240254/how-to-install-pyqt-on-ubuntu-12-04-with-python-2-7
on my system it's fine (system python import PyQt4 OK) but in env it keeps failing.

pip search PyQt4 shows a PyQt4 package, but pip install claims no such package exists ?! (Ubuntu)

Any ideas how to workaround this?
Thanks

@david-ragazzi
Copy link
Collaborator

HI @breznak, have you tried apt-get instead of pip?

@breznak
Copy link
Member Author

breznak commented Feb 19, 2015

I did. The problem is they are installed (system-wide), but I have python env for nupic set up to hide the system python packages (--no-site-packages), because I had some conflicts in nupic/system python modules otherwise.

I will try once more from scratch..

@ghost
Copy link

ghost commented Aug 24, 2018

If someone stumbles upon this, the solution I found is:

  • Copy PyQt4 package from your /usr/lib..../(path) to virtualenv's lib path.

  • Anyone successful in running nupic studio successfully?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants