I get this error when trying to install PySide2 from the Mac's Terminal:
ERROR: No matching distribution found for PySide2
I checked to make sure I have only 1 installation of Python on my MacBook. The screen shot shows the commands I used to check where Python is located and the recommended command I've seen online. I also have the latest version of pip and Python installed. I need PySide2 for PySimpleGUIQt. I also tried home brew, but it also couldn't locate PySide2, but found something called PySide#2 which I don't know if that's another name for PySide2.
It's cause you have python newest then pyside2 support. I try to install pyside2 on python 3.10 (3.9 same error) and get this error.
Proof:
But in 3.8 it's worked (but on Pypi https://pypi.org/project/PySide2/ it's must work and on 3.9 and 3.10)
Related
I have installed one version of python a while ago, that was version 3.9.6. I recently installed version 3.11.1 as I am once again using python. I am trying to follow a tutorial on a webscraper and when I try to import the package "requests bs4" using the command python -m pip install requests bs4 I am told that the requirement is already satisfied. This is true that I have it installed in version 39, so my question is how do I direct pip to install it in the newest version of python that I currently have installed.
I tried to mess with the path by deleting version 39 off my path leaving only 311 but when I repeat the command above it returns that the same error as above. Ive looked at other problems very similar to mine but none quite the same, so when I try the solutions for others it doesn't quite work for me.
I am using windows 11
I am trying to install allennlp via pip on the latest version of macOS Catalina. The Python version is 3.9.0. The pip version is 20.2.4.
I was just able to install only a couple of weeks ago, but now I receive the following error when I run the command:
pip3 install allennlp allennlp-models
ERROR: No matching distribution found for torch<1.8.0,>=1.6.0 (from allennlp)
This is really bad because a time-sensitive project I am working on right now completely depends on allennlp working. I needed to reinstall due to some git issues, and my virtual env was reset. What can I do to resolve this issue?
Thanks.
EDIT: Somehow I ended up uninstalling 3.9 in homebrew and now I'm stuck at jsonnet. It errors out. I saw some posts about this issue, but none of the recommendations work.
EDIT2: I tried reinstalling brew's python 3.9. jsonnet standalone works again, but then I have the pytorch issue again.
I'm stuck in a loop. Neither the system macOS 3.8 python nor the latest 3.9 home-brew python works. I'd rather get the home-brew python working, but there's no valid version of torch available for that one apparently.
Do NOT accidentally use home-brew to download the latest Python 3.9. That isn't compatible with a lot of the required libraries.
Phew.
I have version 3.8 of python and I need to install opencv package on pycharm so I tried this command pip3 install opencv-python (on terminal of pycharm).
I got WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Is there any solution to fix that prob ?
Thanks!
installing packages/libs on Pychram are very easy you just need to import the lib that you want and it will show you an install option and if it dose not show you it you can press on file on the upper left , go to setting then go to python interpreter there will be a plus sign and you can just search for the packages/libs and download it
After not being able to use pip getting an "invalid syntax" error when entering "python pip" in the CMD-Line of windows, I downloaded the latest python package from the website and installed it.
But same problem.
Even in the Python folder there is neither a pip.py nor a "get-pip.py". That's pretty weird.
What could be the reason?
I have numpy and matplot installed and working properly with python 2.7, but when I use pip to install scipy, I get this error.
numpy.distutils.npy_pkg_config.PkgNotFound: Could not find file(s) ['/usr/local/lib/python2.7/site-packages/numpy/core/lib/npy-pkg-config/npymath.ini']
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /var/folders/61/dpn0d5p51z19g5vypnmh3vfh0000gn/T/pip-build/scipy
There is no end to the amount of grief that you can run into when trying to install numpy, scipy, and matplotlib on Mac OS X. If you want to stay on the bleeding edge I would suggest downloading the git repositories and building each one.
If you don't need to be on the bleeding edge I would suggest, following the instructions on the SciPy web site:
http://www.scipy.org/Installing_SciPy/Mac_OS_X
Finally, there is the great work that Chris Fonnesbeck: At https://github.com/fonnesbeck/ScipySuperpack
The Fonnesbeck method has never failed for me.
I also was not able to install scipy using pip. However an option that has worked for me was using the .dmg package provided by scipy.org.
Important: you will have to update to the latest version of python in your Mac OS. That is, you can still use the Python 2.7, however it is necessary to update to the latest build which you can download at python.org.
I could suggest you to use some package manager for Mas OS X (for example macports). Using a kind of such system could avoid you from such things like manual resolving of dependencies, and so on.