Why doesn't it find PySide2? - python

I am doing a project with PyQt5 and whenever I run the PyQt5 code I get this error:
ImportError: Unable to import required Qt libraries from PySide2! Please set the 'ICONIFY_QTLIB' env var to the location of a Qt5 compliant python binding you would like to use.
And when I want to install PySide2, I face this problem:
ERROR: Could not find a version that satisfies the requirement PySide2 (from versions: none)
ERROR: No matching distribution found for PySide2
I have used different commands but none of them worked.
I have encountered this problem

Related

FCPython installation

When I try to import FCPython on Jupyter notebook:
from FCPython import createPitch
I get this error:
ModuleNotFoundError: No module named 'FCPython'
when I tried to install it :
pip install FCPython
I get this error:
Note: you may need to restart the kernel to use updated packages.
ERROR: Could not find a version that satisfies the requirement FCPython (from versions: none)
ERROR: No matching distribution found for FCPython
Encountered the same issue when following the Soccermatics tutorial on Expected goal from Friends of Tracking youtube channel.
Solution: FCPython is not a module-package, the code is shared in the github repository where 3xgModel is located.
https://github.com/Friends-of-Tracking-Data-FoTD/SoccermaticsForPython/blob/master/FCPython.py
just put the FCPython.py in the same dir as the code file and run.

Installing PySide2 on Windows 10

i am trying to install PySide2 on Python3.10: "pip install PySide2" however it shows me these errors:
ERROR: Could not find a version that satisfies the requirement PySide2 (from versions: none)
ERROR: No matching distribution found for PySide2
What can i do please?

Python tkinter Library Not Installing properly

I am trying to install Tkinter for PyDictionary which has installed fine, but Tkinter has not.
pip install tkinter
But this error has arisen:
ERROR: Could not find a version that satisfies the requirement tkinter (from versions: none)
ERROR: No matching distribution found for tkinter
Anyone know any possible ways of fixing it? I downloaded python from python.org and I am coding on Visual Studio Code.

ImportError: No module named PyQt5 : python3

I was trying to learn how to use PyQt5 but at the moment that i want to run my code i got this error
ImportError: No module named PyQt5
I searched about it and i try all the possible solutions but im not able to fix it.
When i run
pip3 install PyQt5
I get this
Requirement already satisfied: PyQt5 in /usr/lib/python3/dist-packages (5.12.3)
And if i run
python --version
I get
Python 3.7.5
Now i dont know what to do. I'm using Pop_OS 19.10

Zebra Printer Python Package in Pycharm

I am trying to install the zebra-0.0.5 package in pycharm on a windows machine. I did have pip and win32 installed. But this error keep showing up. Would someone had similar experience before help?
Thanks!
Could not find a version that satisfies the requirement win32print (from zebra) (from versions: )
No matching distribution found for win32print (from zebra)
The zebra module depends on a module called win32print on Windows for the installation to complete. Since the win32print module is no longer available anywhere it gives you error.
Possible Solution 1:
Switch to linux as it does not require the win32print module on linux
Possible Solution 2:
Install pywin32 / pypiwin32. Install any one of the modules and use it.
Download zebra 0.0.5 source code from
here
Extract it and edit the setup.py file and more specifically the line
23 which says install_requires='pywin32/pypiwin32':
if sys.platform.lower().startswith('win'):
install_requires = 'pywin32/pypiwin32'
else:
install_requires = None
Now, edit the zebra.py file and change all references from win32print
to pywin32/pypiwin32.
NOTE: I haven't tried this solution as I don't have a zebra printer. I hope this would help you.

Categories

Resources