bbalasub1 / glmnet_python

GNU General Public License v3.0
200 stars 95 forks source link

Fix PyPi release (missing libgfortran.so.3) #38

Open mgbckr opened 5 years ago

mgbckr commented 5 years ago

Hi, when I install glmnet_py from PyPi via "pip install glmnet_py" I get an error about a missing library file, namely libgfortran.so.3:

OSError: libgfortran.so.3: cannot open shared object file: No such file or directory 

To solve this, I had install glmnet_py manually as suggested by the documentation:

git clone https://github.com/bbalasub1/glmnet_python.git
cd glmnet_python
python setup.py install

So, it seems that this may be an issue with the current PiPy release. So updating PiPy should solve the issue?

BTW: I am using Fedora 29 with Python 3.7.2

PS: Oh, and if you have time, can you clean up (or clarify in the README) the whole glmnet situation with regard to PiPy and the docs which is kind of confusing :) (glmnet-py VS glmnet-python, https://github.com/bbalasub1/glmnet_python VS https://github.com/hanfang/glmnet_py VS https://github.com/bbalasub1/glmnet_python)

GentaK2018 commented 3 years ago

@mgbckr Hello, I solved the OSError by refering below: https://stackoverflow.com/questions/62908955/how-to-install-libgfortran-so-3-on-ubuntu-20-04

You need to ececute sudo apt-get update before sudo apt-get install g++-6.

My environment: Python Python 3.6.13 64bit, Ubuntu 20.04 LTS on WSL

jamesdj commented 2 years ago

I also encountered this problem. The pip installed version depends on gfortran 3, which is no longer supported on many OS, while the current version in the repo uses gfortran 4.4.7 and works. While there may be workarounds to install gfortran 3, it would be best to update the PyPi release so that such workarounds become unnecessary.