Fail to access python version of LHAPDF?
I have python both 2.7 and 3.9 on my mac OS catalina.
lhapdf 6.2.1 is installed by homebrew: https:/
I added the correct lhapdf path to PYTHONPATH and DYLD_LIBRARY_PATH
When i run madgraph5, i got this:
Failed to access python version of LHAPDF: If the python interface to LHAPDF is available on your system, try adding its location to the PYTHONPATH environment variable and theLHAPDF library location to LD_LIBRARY_PATH (linux) or DYLD_LIBRARY_PATH (mac os x).The required LD_LIBRARY_PATH is /usr/local/
To try what happens, I tried to run python. When I run python2.7, import lhapdf, everything is OK. When I run python 3.9 and import lhapdf, I got this:
>>> import lhapdf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(
Referenced from: /usr/local/
Expected in: flat namespace
in /usr/local/
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Isaac Wang
- Solved:
- Last query:
- Last reply: