Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

yum install specific version of python package

I want to yum install python-pyside, but I don't want any old/new version of pyside, I want pyside version 1.2.1.

How can I do this?

I currently have:

yum install python-pyside
like image 238
Jonathon Hill Avatar asked Aug 14 '16 23:08

Jonathon Hill


People also ask

How do I install a specific version of a python package?

How do I Install a Specific Version of a Python Package? To install a specific version of a Python package you can use pip: pip install YourPackage==YourVersion . For example, if you want to install an older version of Pandas you can do as follows: pip install pandas==1.1.


1 Answers

First check which versions are available in your repos

yum --showduplicates list python-pyside | expand

Then use the following to install a specific version that is listed from the command above

yum install <package name>-<version info>

Which means if v1.2.1 is available, you would need to run the command:

yum install python-pyside-1.2.1

If it's not available then you need to enable a repo which has that version.

like image 98
rdgd Avatar answered Oct 01 '22 23:10

rdgd