yum woes, (Python dependencies error, Can't install R)

Latest response

I tried to install R (server, RHEL 7), when I hit yum update, I got few errors. Most of them were related to python.

Here's an excerpt -

...
Error: Package: python36-distro-1.2.0-3.el7.noarch (epel)
           Requires: /usr/bin/python3.6
Error: Package: R-core-3.6.1-2.el7.x86_64 (epel-testing)
           Requires: libgfortran.so.5(GFORTRAN_8)(64bit)
Error: Package: python36-requests-2.12.5-3.el7.noarch (epel)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-39.el7_2.x86_64 (@rhel-7-server-eus-rpms)
               python(abi) = 2.7
               python(abi) = 2.7
           Removing: python34-3.4.5-3.el7.x86_64 (@epel-testing)
               python(abi) = 3.4
           Updated By: python34-3.4.10-4.el7.x86_64 (epel)
               python(abi) = 3.4
           Available: python-2.7.5-16.el7.x86_64 (rhel-7-server-rpms)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-18.el7_1.1.x86_64 (rhel-7-server-rpms)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-34.el7.x86_64 (rhel-7-server-rpms)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-38.el7_2.x86_64 (rhel-7-server-rpms)
               python(abi) = 2.7
               python(abi) = 2.7
...

I believe python 3 isn't configured correctly? I was thinking of using Anaconda to install R but I'd prefer to install from RHEL repos for easier updates.

I'm relatively newish to RHEL. I tried clearing and rebuilding repos, but that doesn't resolve the errors.

BTW if a full list of the error is required, do let me know

Responses

Hi Karthik,

RHEL 7 comes with Python 2.7 by default.

Two options are easiest:

a) Install Python 3:

https://developers.redhat.com/blog/2018/08/13/install-python3-rhel/

b) Use Anaconda. It is self-contained and works perfectly well. It has over 1,500 Python/R data science packages.

https://www.anaconda.com/distribution/

Here is how easy it was to install it for Machine Learning team in my organisation last year:

# sh Anaconda2-5.0.1-Linux-x86_64.sh

# conda install R

Regards,

Dusan Baljevic (amateur radio VK2COT)

Hay, thanks for the input.

I followed the first link, and this is what I encountered -

# su
# yum install rh-python36
No package rh-python36 available.
Error: Nothing to do

I have enabled the repos via subscription manager... then why isn't it getting a hit?

So I trid Anaconda and it did install R... however I'm a bit intimidated by conda, envs and all that. Might have to keep those in mind.

My experiences with R packages/anaconda hasn't been a fun one.

Suffice to say my problem is solved, for now!

Thanks :D

Hi Karthik,

If the repository is properly enabled, then check what the name of the current python3 package is. For example:

# you list |grep -i python

I actually expect that by now, the repository should have python 3.7...

Maybe that is your problem.

On the other hand it is good that Anaconda installation worked.

Regards,

Dusan Baljevic (amateur radio VK2COT)

Hi

I actually expect that by now, the repository should have python 3.7...

Actually, the latest for me is python 3.5. I'm on RHEL 7.