pythonpython-3.xpiprequirements.txtrhel8

Python Requirements file on rhel 8 machine(red hat 8)


I was working on ubuntu desktop and had created a requirements.txt file using pip freeze > requirements.txt but now when I try to install those package on rhel8 I am unable to as it gives me issue:-

ERROR: No matching distribution found for aiosignal==1.3.1 

And similar issue for other packages also.

system : rhel 8 
python 3.6.8
pip 21.3.1

I searched and found that python packages that are available for ubuntu are not available for rhel 8. But I need those packages as I have to run my application. What is the possible option?


Solution

  • Python 3.6 support was removed from aiosignal after 1.2.0, so you might be able to work with that version or a newer Python

    $ dnf install python3.9
    
    # requirements.txt
    - aiosignal==1.3.1
    + aiosignal==1.2.0