How can I run python script using anaconda? Error

I’m using conda on a m1 Mac and I’m using Python 3.8. I want to run a python script using conda, typing on the terminal:

/Users/admin/opt/anaconda3/bin/python /Users/admin/opt/anaconda3/lib/python3.9/site-packages/script_name.py

But it returns an error even if the file “libjili.dylib” is in that folder:
OSError: [Errno 0] JVM DLL not found: /Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/jli/libjli.dylib

How can I solve?

1 Like

I had a similar question on stackoverflow, so please refer to it. :grinning:

@padec97 Thank you for posting your issue!
Can you provide some additional information? The output of conda info and conda list --show-channel-urls would be helpful.
Which version of Anaconda did you install? Is this a new problem or have you always seen it?
What is the script you are running trying to do? What libraries are needed for it to run successfully?