htm-community / nupic.studio

NuPIC Studio is a powerful all­-in-­one tool that allows users create a HTM neural network from scratch, train it, collect statistics, and share it among the members of the community.
GNU General Public License v2.0
94 stars 29 forks source link

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

Open breznak opened 9 years ago

breznak commented 9 years ago

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 commented 9 years ago

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

breznak commented 9 years ago

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 commented 6 years ago

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