Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install a python module ignoring version requirement

Is there a way to use pip, easy install or any other method to ignore Python version requirements when installing a module?

I'd like to use the unofficial wheel for PySide2 with Python 3.6 despite it being for version 3.5 as my code has problems with 3.5.

Several issues with Visual Studio are making it impossible for me to compile everything from scratch.

like image 504
misantroop Avatar asked Sep 05 '25 16:09

misantroop


1 Answers

(This is an old question, but still relevant--I was looking for the answer today.)

You can pass the parameter --ignore-requires-python to pip to override the Python dependency:

pip install --ignore-requires-python <library>

See also: Can I force pip to install a package even with a version conflict?

like image 152
CraigF Avatar answered Sep 07 '25 18:09

CraigF