-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arch Linux and Python #21
Comments
@waldeir thanks a lot for the info. I didn't try on Arch Linux, maybe @williamjameshandley Thank you very much! |
Arch linux is a little bit idiosyncratic (and controversial) when it comes to its treatment of python, the main complication is that These commands on my arch linux system show the main problem: $~ python --version
Python 3.8.2
$~ which python
/usr/bin/python
$~ which python-config
/usr/bin/python-config
$~ python-config --ldflags
-L/usr/lib -lcrypt -lpthread -ldl -lutil -lm -lm
$~ ls /usr/lib/libpython*
/usr/lib/libpython2.7.so /usr/lib/libpython3.5m.so.1.0 /usr/lib/libpython3.8.so
/usr/lib/libpython2.7.so.1.0 /usr/lib/libpython3.6m.so /usr/lib/libpython3.8.so.1.0
/usr/lib/libpython3.5m.so /usr/lib/libpython3.6m.so.1.0 /usr/lib/libpython3.so which is that the
I'm currently using this to call tensorflow from one of the cosmology standard fortran codes (CosmoMC). |
No, i am not using anaconda. I am using the "python" (which provides python 3.8), python-matplotlib and python-numpy packages from the arch linux official repositories. |
@williamjameshandley @waldeir Thanks a lot for the clarification! |
Starting with Python 3.8 |
In order to run the basic example in arch linux it is necessary do add the flag -lpython3.8. Assuming you are using bash, the command should be:
gfortran intro_to_forpy.F90 forpy_mod.o `python3-config --ldflags` -lpython3.8
The text was updated successfully, but these errors were encountered: