I am trying to use ghost.py which requires PySide or PyQt4. I tried to install PySide with pip.
PySide Installation Error
Then when I try to install PyQt4 instead, I get this result:
PyQt4 Installation Error
I checked other questions on stackoverflow and installed PyQt6 instead bu ghost doesn't work with PyQt5-PyQt6. Can anybody help me with these problems. All I want is to be able to use ghost.
I have successfully managed to build and install PySide2 on Python 3.6.4. (default, not Anaconda) on Windows 10 operating system.
However shiboken2 has not been installed. How may I install shiboken2? I know that that the code for this module is attached to PySide2 installation files.
I suspect that my C++ code which is built as DLL file cannot be imported in Python due to missing shiboken2. However this importing works fine in Anaconda environment. But at the moment I do not want to use Anaconda because there are old versions of 'Qt' (5.6 but I need 5.9.x) and 'PySide2' installed.
Just a moment ago I figured it out that shiboken2 can be imported like this:
from PySide2 import shiboken2
So before importing my own files the above line has to be added.
I downloaded PyQt5 executable file on Windows 7 for python 2.7 both 64bit versions.
Is installed on C:\Python27\Lib\site-packages\PyQt5
I'm trying to use the above code:
from PyQt5.QtWidgets import QApplication, QDialog
I get the error:
ImportError: DLL load failed: The specified module could not be found.
I found the QtWidgets on this folder: C:\Python27\Lib\site-packages\PyQt5\sip\PyQt5\QtWidgets
Do you have any idea?
Are you sure that you installed a version of PyQt5 that is compatible with your version of Python (32-bit or 64-bit)?
I want to setup Eric 6 IDE on Linux Mint 17.1. I downloaded source code of Eric 6 and I tried to setup.
sudo python3 install.py
I got an Qt version error on the below.
Checking dependencies
Python Version: 3.4.0
Found PyQt5
Found QScintilla2
Found QtGui
Found QtNetwork
Found QtPrintSupport
Found QtSql
Found QtSvg
Found QtWebKit
Found QtWebKitWidgets
Found QtWidgets
Sorry, you must have Qt version 4.8.0 or better or 5.3.0 or better.
But when I controlled QT version on my computer. Output is on the below.
QMake version 3.0
Using Qt version 5.4.0 in /usr/lib/x86_64-linux-gnu/qt5/lib
How can this be fixed?
When I try to import the following using PyCharm:
import sys
from PyQt5.QtWidgets import QtGui, QtCore
it generates this error when compiling:
ImportError: No module named 'PyQt5'
I want PyQt5 in Pycharm. Can you explain in complete detail what should I do to install it?
Try
PyCharm -> file -> settings -> project:'your_project' - project interpreter -> + -> install PyQt5
pip install PyQt5 doesn't work for PyCharm
Install PyQt5 from the installer on the PyQt website. It probably just installs PyQt as a site package to the python version you point to in your 'Path', although it may ask for your preference - cant remember.
It also installs other useful PyQt stuff to your hard drive.
It also updates the path to the PyQt module so you can easily run the pyuic5.bat file from the command line to convert the .ui generated by 'Qt Designer' to a python file.
No configuration of PyCharm should be necessary and it will pick up any new site packages added automatically.
also...
from PyQt5 import QtCore, QtGui, QtWidgets
The reason why you cannot pip install PyQt5 is because the Python Package Index (PyPi -- where pip searches for packages) was not provided with the files to serve.
Put another way: when you use pip search, you are being provided with a list of projects that have been registered with PyPi, whether or not downloadable source files were made available.
Contrast the PyPi page for easyos, where a download of the files has been made available, to PyQt5, where they have not been.
To install PyQt5, follow the "Download URL" on the PyPi page and install it according to the provider's instructions. You may have to repeat this process for additional packages and should make note of steps taken in case you have to repeat them in the future -- steps taken outside of pip do not make it into your requirements.txt.
Note PyQt5 pip packaging requires Python 3.5 or later. With PyCharm 2017 you can install from the ide write the ´import PyQt5´ in your code, press alt enter on the missing import and select "import PyQt5".
Or from the command line as per the latest installation instructions:
pip3 install pyqt5
For Linux OS users(Ubuntu and Debian base distributions):
For installing PyQt4:
sudo apt install pyqt4-dev-tools
For installing PyQt5:
sudo apt install pyqt5-dev-tools
In General, GNU/Linux users can install pyqt5 it using the below command:
pip3 install pyqt5
The installation instructions are fully described here.
Open terminal from PyCharm (View -> Tools Windows -> Terminal) and type the following:
python -m pip install pyqt5