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
Cannot get started on OSX #37
Comments
As a workaround, you can run
to specify the Python shared library to link to. Currently, PyCall runs the
to find out the name and location of the Python library. What does this print for you? Alternatively, I'm thinking of using |
Same problem, but I am using anaconda, workaround
worked, but
|
@stevengj, thanks for the quick response. The FYI, when I run the commands listed (the ones PyCall executes) I get the exact same thing as @AlexMikhalev:
Executing
|
Hmm, those I need a way to query the location of libpython from either |
Hmm. I'll think about it and let you know if I can come up with anything. |
I believe this works (at least for Mac OS X): # get the path of (default) python executable
exepath = readchomp(`python -c "import sys; print sys.executable"`)
# construct the path of libpython
libpath = joinpath(dirname(dirname(exepath)), "lib", "libpython2.7.dylib") |
@lindahua, that works, and I can also use
With other Python installations I never had to set |
Hmm, looks like I need to send the full path of the Python executable (via sys.executable) to |
Add triple-quote LaTeXString string literals
I am a Python developer and have multiple working versions of Python on my machine.
I cannot, however, get PyCall to work after simply following the instructions from the readme and doing
Pkg.add("PyCall")
. This is what a sample session looks like:The error message is fairly clear at explaining what is happening, but I have no idea why PyCall is looking for python at
/
or how I tell it where my Python is. I would like to use the python at~/anaconda/bin/python
. I tried to be more explicit and set$PYTHONHOME
to various values near that directory. I have tried all of the below values:export PYTHONHOME="/Users/sglyon/anaconda/lib/python2.7"
export PYTHONHOME="/Users/sglyon/anaconda/bin"
export PYTHONHOME="/Users/sglyon/anaconda/lib/"
export PYTHONHOME="/Users/sglyon/anaconda/"
For each of those values I get the following printout (it is the same for any of the listed values):
What other configuration do I need to do to get this to work with the python of my choosing? (Note that the anaconda python is the first on my
$PATH
and is executing when typing python from the command line.)The text was updated successfully, but these errors were encountered: