pip install pyqt5-tools error subprocess-exited-with-error

im installing pyqt5 tools and this happens

C:\Users\Jansen>pip install pyqt5-tools
Collecting pyqt5-tools
  Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
  Using cached pyqt5_tools-5.15.4.3.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.4.3.0.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.3.3.2-py3-none-any.whl (29 kB)
  Using cached pyqt5_tools-5.15.3.3.1-py3-none-any.whl (28 kB)
  Downloading pyqt5_tools-5.15.3.3.0.3-py3-none-any.whl (28 kB)
  Downloading pyqt5_tools-5.15.2.3.2-py3-none-any.whl (29 kB)
Collecting python-dotenv
  Using cached python_dotenv-0.20.0-py3-none-any.whl (17 kB)
Collecting pyqt5==5.15.2
  Downloading PyQt5-5.15.2.tar.gz (3.3 MB)
     ---------------------------------------- 3.3/3.3 MB 6.9 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error`  

im trying to install pyqt5 so that i can use the pyuic5 command

Upvotes: 1

Views: 12607

Answers (3)

AwsmE
AwsmE

Reputation: 1

I faced the same problem, install the desired tool, in my case QT designer, i was not getting it installed with pyqt5-tools command, instead i used pip install pyqt5 designer, then the designer was not opening in terminal, then go to your python directory and find the name that designer has been assigned, in my case it was named only designer, then you can open the tool by giving the name in the directory.

Upvotes: 0

lessy
lessy

Reputation: 16

  1. Download python 3.9
  2. Download virtualenv from https://bootstrap.pypa.io/virtualenv.pyz
  3. Copy virtualenv.pyz to python 3.9 directory
  4. Install virtualenv python virtualenv.pyz env_folder
  5. Go to env_folder/Script.
  6. Run activate file
  7. pip install pyqt5-tools
  8. Run Qt
    pyqt5-tools designer

Upvotes: 0

marcdogi
marcdogi

Reputation: 86

As I can't yet comment questions, may I ask: are you using a virtual environment? Anyway, you could try with this command:

pip install pyqt5-tools~=5.15

Moreover, as @musicamante said, if you're using a Python version that's above 3.10, a downgrade to version 3.9 or older is recommended as pyqt tools ar still not compatible with >3.9 versions. However, as I've seen here, you can try installing an specific 5.15 release version, so please try:

pip install PyQt5==5.15.5

Upvotes: 4

Related Questions