How to fix ModuleNotFoundError: No module named 'PySide2', - python

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!

Related

What package could I download to import tensorflow_decision_forests in anaconda

I am trying to install tensorflow_decision_forests from the command prompt but I get the following error:
ERROR: Could not find a version that satisfies the requirement tensorflow_decision_forests
ERROR: No matching distribution found for tensorflow_decision_forests
I am searching for tensorflow_decision_forests rleated packages in anaconda to be able to import it into my code.
pip3 install tensorflow_decision_forests --upgrade
Source: https://github.com/tensorflow/decision-forests#installation
However, from
https://github.com/tensorflow/decision-forests/issues/16
the latest pip version is for linux only. Therefore, if you are a mac user, you can download it from
https://github.com/tensorflow/decision-forests/releases/tag/0.2.3

pip does not find the version of the package to install

I want to install pytorch3d version 0.3.0 or above, but pip sees only 0.0.1 version for installing. I runned next commands:
pip install pytorch3d==0.3.0
And got the next error:
ERROR: Could not find a version that satisfies the requirement pytorch3d==0.3.0 (from versions: 0.0.1)
ERROR: No matching distribution found for pytorch3d==0.3.0
If I run the install command without a specific version, pip will install the package with version 0.0.1.
My environment:
Windows 10 x64
Python 3.9.7
pip 21.2.4
Note:
direct internet connection, no proxy used
I haven't others versions python on pc
same errors when installing next packages: torchvision==0.7.0, torch==1.6.0
I tried with the virtualenv and without them
I installed Python from the windows store.
From their installation guide and your requirements use:
pip install pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py38_cu102_pyt190/download.html
Specified package cannot be installed via pip, because not supported on my os(Windows 10). This can be seen on the page with the version and available files for download of the required package.

Error installing python library simple-crypt in Linux

I am getting error while installing python library simple-crypt in linux whereas I have installed it on windows 10. Python version on linux server is 2.7.
Can someone please let me know how can I resolve the issue.
I am getting error as below:-
ERROR: Could not find a version that satisfies the requirement pycrypto (from simple-crypt==4.1.7) (from versions: none) ERROR: No matching distribution found for pycrypto (from simple-crypt==4.1.7)
I have Kali Linux and it works for me with the command:
pip install simple-crypt
If you don't have pip install it:
sudo apt update
sudo apt install python3-pip

How to install pywin32 in anaconda

Errors that I am getting:
ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32
The python version installed is: Python 3.7.6
Is there any workaround or manual process to install the package in anaconda?
Maybe, you can try using pypiwin32 instead of pywin32.
or
If you want to use pywin32 you can check this How do you install pywin32 from a binary file in tox on Windows?

installing PyQt 5 on windows 7 with python 3.4

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

Categories