Error No Module Named Pyqt4.qtcore
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ImportError: No module named PyQt4.QtCore up vote 11 down vote favorite 4 I've reïnstalled my ssh server, so I also need to reïnstall my Python packages. I did that, but I still get the error: ImportError: No module named PyQt4.QtCore I've already successfully installed: sudo apt-get install libqt4-dev But still it don't work, so I tried the installation instruction of PyQt4 So I've tried to install SIP first, but when I run "make" (see end of this page, "Building") But I get this error: make[1]: Entering directory `/home/francis/Downloads/sip-4.12.4/sipgen' g++ -o sip main.o transform.o gencode.o extracts.o export.o heap.o parser.o lexer.o make[1]: g++: Command not found make[1]: *** [sip] Error 127 make[1]: Leaving directory `/home/francis/Downloads/sip-4.12.4/sipgen' make: *** [all] Error 2 What do I have to do? Or is there an other way to install PyQt4? Thanks! python share|improve this question asked Aug 19 '11 at 9:51 Francis Michels 1922314 8 Try apt-get install python-qt4. –utdemir Aug 19 '11 at 9:52 add a comment| 4 Answers 4 active oldest votes up vote 15 down vote accepted As mentioned in the comments, you need to install the python-qt4 package - no need to recompile it yourself. sudo apt-get install python-qt4 share|improve this answer answered Aug 19 '11 at 10:07 Kimvais 18.6k665101 1 FWIW, I had a similar problem with a windows box. The script runs fie on my Linux machine, with the same python version. You can download the correct binary (get the one that matches your python installation) from: riverbankcomputing.co.uk/software/pyqt/download –John T Oct 9 '12 at 2:38 add a comment| up vote 2 down vote I had the same issue when uninstalled my Python27 and re-installed it. I downloaded the sip-4.15.5 and PyQt-win-gpl-4.10.4 and installed/configured both of them. it still gives 'ImportError: No module named PyQt4.QtCore'. I tried to move the files/folders in Lib to make it looked 'have' but not working. in fact, jut download the Windows 64 bit installer fo
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ImportError: No module named PyQt4 on my Raspberry Pi up vote 0 http://stackoverflow.com/questions/7119844/importerror-no-module-named-pyqt4-qtcore down vote favorite I've got PyQt4 and pyqt4-dev-tools installed on my raspberry pi but I'm getting ImportError: No module named PyQt4 on my Raspberry Pi with the following includes when I run python3 from PyQt4 import QtGui from PyQt4 import QtCore I've got another Pi that PyQT4 is found so I'm not sure what I've done wrong on this one. Can anyone tell me what I can do to http://stackoverflow.com/questions/32173695/importerror-no-module-named-pyqt4-on-my-raspberry-pi get Python to find the PyQt4 modules? python python-3.x import pyqt4 share|improve this question asked Aug 24 '15 at 2:27 user3723727 3218 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted Most likely you installed PyQt4 and pyqt4-dev-tools for Python 2.x, but not for Python 3.x. Check if PyQt4 is in your site-packages directory for Python 3.x. For me this is under /usr/lib/python3.4/site-packages/PyQt4. If it's not there, you need to grab the correct Python 3 version of the packages. What distro are you using? share|improve this answer answered Aug 24 '15 at 2:54 Jashandeep Sohi 1,7941416 Thanks for you help - I'm using Python 3.2 on Debian (Raspbian) (not sure how to get 3.4) but my path is /usr/lib/python3/dist-packages/PyQt4. Is this in the correct spot? @jashanddeep-sohi –user3723727 Aug 24 '15 at 4:42 You can find out by looking in the sys.path variable in Python. It lists all the paths Python searches for modules. -- So does PyQt4 exists under /usr/lib/python3/dist-packages/? Try import PyQt4 in both the python2 and python3 interpreter , and see if any works. Also make sure you are running the script with the correct version (i.e. python2 my_script.py vs python3 my_script.py) &ndas
here for a quick overview of the site Help Center Detailed answers to any questions you might http://stackoverflow.com/questions/20672918/importerror-no-module-named-pytqt5 have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads http://azaleasays.com/2013/09/01/no-module-named-pyqt4-after-brew-install/ with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million error no programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ImportError: No module named PytQt5 up vote 9 down vote favorite 2 following are my python, qt and sip versions root@thura:~# python -V Python 2.7.3 root@thura:~# qmake --version QMake version 3.0 Using Qt version 5.0.2 in /usr/lib/i386-linux-gnu root@thura:~# sip -V error no module 4.15.3 I tried to import the PyQt5 by following by this from PyQt5.QtWidgets import QtGui, QtCore I got the following error ImportError: No module named PyQt5.QtWidgets How can I solve this error. Updated ===================== When I tried to PyQt4, I got following error. from PyQt4.QtCore import pyqtSlot as Slot RuntimeError: the sip module implements API v10.0 to v10.1 but the PyQt4.QtCore module requires API v8.1 Updated 2013-12-20 ====================================== 1) download sip-4.15.3.tar.gz from here 2) extract sip-4.15.3.tar.gz 3) copy sip-4.15.3 to /home/thura 4) type "cd /home/thura/sip-4.15.3" 5) type "python configure.py", press enter, follow the instructions (type yes and press enter) 6) type "make", press enter and type "make install", press enter 7) download PyQt-gpl-5.1.1.tar.gz from here 8) extract PyQt-gpl-5.1.1.tar.gz 9) copy PyQt-gpl-5.1.1 folder to /home/thura folder. 10) type "cd /home/thura/PyQt-gpl-5.1.1" 11) type "python configure.py", press enter, following the instructions (type yes and press enter) 12)type "make", press enter and type "make install", press enter update 2013-12-20 ===================== After redo it again. I got the follow
ImportError: No module named PyQt4` Solution: Add export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH to ~/.bash_profile (if bash) or ~/.zprofile (if zsh) References: [https://github.com/mxcl/homebrew/issues/6176] (https://github.com/mxcl/homebrew/issues/6176) brew info pyqt python pyqt · Tweet Edit ← The lonely "On the other hand" 用 Dropbox 解决从 Wordpress 搬家到 Jekyll 的图片存储问题 → Designed by Tao Zhang | Jekyll, Bootstrap, GitHub Pages | CC BY-NC-SA 3.0 | 2016-08-09 Shop at Amazon.com and support this blog!