-
Notifications
You must be signed in to change notification settings - Fork 61
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
Python 3 not found on Mac OS #144
Comments
You can use |
Is pyInitLibPath() new? I installed Nimpy using nimble but when I try to compile I get: Also, do you know the actual name of the library? I don't have a python.so file on my system (Mac OS). |
It worked with the latest code, thanks, I just pointed pyInitLibPath to the python 3 binary in my virtual env. |
@yglukhov why is this necessary for MacOS but not for windows? Code runs fine on Windows without specifying the path but doesn't on MacOS for me as well.
In nimpy:
which is the system python There is no libpython*.so* |
It looks like you load the first libpython*dylib you find. Can we get the ability to specify what version we want then? |
Actually, that wouldn't help here since it is completely not finding any python3 dylibs. |
If you're using pyenv on Mac OS, make sure that you have (found this from JuliaPy/PyCall.jl#122) |
workaround: use |
When I try import a non-standard module I get an error. However when I import os it works fine.
When I run the following code:
let pysys = pyImport("sys")
echo pysys.version
It looks like nimpy is using Python 2 instead of Python 3. How can I point it to Python 3? I'm using a virtual environment to setup Python 3.
I found a similar issue: #46
The text was updated successfully, but these errors were encountered: