I wanna install PyQt5 on windows by pip but rise me this error:
pip install PyQt5
Collecting PyQt5
Using cached PyQt5-5.7.1-5.7.1-cp34.cp35.cp36.cp37-none-win32.whl
Collecting sip>=4.19 (from PyQt5)
Could not find a version that satisfies the requirement sip>=4.19 (from PyQt5)
(from versions: )
No matching distribution found for sip>=4.19 (from PyQt5)
and when i try to install sip via pip raise me this error:
Could not find a version that satisfies the requirement SIP (from versions: )
No matching distribution found for SIP
what can i do?
You can use pip to install SIP and then pyQt5.
pip install SIP
But in order to be able to do that you need python 3.5 and its better to use virtualenv to not mess with core installation/change version.
Then you can try installing PyQt5.
pip install pyqt5
Make sure you have the latest python installed (or at least v3.5)
Make sure your new python install is being used from your path instead of the old one (python --version)
pip3 install PyQt5 should then successfully install SIP and PyQt5 for you
Related
The am using docker container ubuntu 18.04, I have installed python 3.7. The program works on ubuntu 18.04 with GUI.
pip -version or pip3 -version
Output: pip 22.3.1 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)
I am facin the following error:
ModuleNotFoundError: No module named 'PySide2'
I have tried installing it by running:
pip install PySide2
But this is the error I get:
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement PySide2 (from versions: none)
ERROR: No matching distribution found for PySide2
I have also tried:
pip3 install PySide2
But still get the same error:
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement PySide2 (from versions: none)
ERROR: No matching distribution found for PySide2
I was initally using python 3.8. But read somewhere that it does not suppose it. So I installed python 3.7. I have got the same error with python 3.6 and python 3.5
I have also adding --user, that is,
pip install PySide2 --user and pip3 install PySide2 --user
I still continue to get the same error.
ERROR: Could not find a version that satisfies the requirement PySide2 (from versions: none)
ERROR: No matching distribution found for PySide2
I have also tired sudo apt-get install PySide2
Then I get this error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package PySide2
I even tired installing the wheel directly from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyqt4
and then run it. It doesn't work.
I would really apprecite if someone can help me out here!
When i tried to install openCV using pip3 install opencv-python i got this error
Could not find a version that satisfies the requirement opencv-python (from versions: )
No matching distribution found for opencv-python
i have tried upgrading pip using
pip install --upgrade pip
and
curl https://bootstrap.pypa.io/get-pip.py | python
none of them helped me and pip is up to date
tried to download and compile opencv manually gives me bunch of errors
python version -2.7,3.6.2
pip version- up to date
raspberry pi 2
Normally this information means that your python version or OS version not compatible with any openCV version which pip can find on the internet.
Could not find a version that satisfies the requirement opencv-python (from versions: ) No matching distribution found for opencv-python
So, please check your python version (include 32bit or 64bit) and OS type, version, and then try pip again.
I use python3.6.5 32bit(virtualenv), windows 10 64bit install openCV succeed.
https://pypi.org/project/opencv-python/ says: "Note that the wheel (especially manylinux) format does not currently support properly ARM architecture so there are no packages for ARM based platforms in PyPI. However, opencv-python packages for Raspberry Pi can be found from https://www.piwheels.org/."
I am trying to import dash library but when I do
pip install dash==0.26.5
I get the following message:
Could not find a version that satisfies the requirement Jinja2>=2.10 (from Flask>=0.12->dash) (from versions: 2.7.3, 2.8) No matching distribution found for Jinja2>=2.10 (from Flask>=0.12->dash)
First, you do not have to specify the version when installing a package via pip, it gets the latest automatically :
pip install dash
The error comes from the fact that you are using some outdated pip packages. And the latest version of dash, that is 0.26.5, is not compatible with some of them and creates conflicts when trying to install.
EDIT : as phd commented it, to upgrade neccessary packages at installation, use --upgrade:
pip install --upgrade dash
I'm trying to install turicreate beta 2 (version 5.0b2) on an old mac (El Capitan) but the terminal throws this:
Could not find a version that satisfies the requirement turicreate==5.0b2 (from versions: 4.1, 4.1.1, 4.2)
No matching distribution found for turicreate==5.0b2
When I enter this:
sudo python3.6 -m pip install turicreate==5.0b2
or this: pip3 install turicreate==5.0b2
So I tried to install the "basic" version (sudo python3.6 -m pip install turicreate,python3.6 -m pip install turicreate, pip3 install -U turicreate, pip3 install turicreate), but this time, the error was:
Could not find a version that satisfies the requirement coremltools==0.8 (from turicreate) (from versions: )
No matching distribution found for coremltools==0.8 (from turicreate)
Do anyone know if it is possible to install turicreate on El Capitan an how to do it ?
I had that same coremltools==0.8 error running pip install turicreate on Mac 10.11 (El Capitan). I was able to solve it fool myself into thinking I'd solved it by compiling and installing coremltools from source. See https://stackoverflow.com/a/55327526/1014857 for those steps.
But turicreate didn't actually work at that point. Running import turicreate in python gave an error (from turicreate's cypython files) about linking to a library built for 10.12.
I even tried building turicreate from source, but there was a dense thicket of dependencies. Eventually I came to my senses and just upgraded to Mac OSX >= 10.12, which was a much easier route.
I am trying to instal pygmaps for my Python 3.5:
pip install pygmaps
I am getting this message:
Could not find a version that satisfies the requirement pygmaps (from versions: ) No matching distribution found for pygmaps
You tried to install the old version of pygmaps. Here the newest https://github.com/thearn/pygmaps-extended
For installing from git use this command:
pip install git+https://github.com/thearn/pygmaps-extended
pip downloads from PyPI and there is nothing to download from https://pypi.python.org/pypi/pygmaps
Go to https://code.google.com/archive/p/pygmaps/downloads, download pygmaps-0.1.1.tar.gz, unpack it and install.