-
Notifications
You must be signed in to change notification settings - Fork 185
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
most @import fail in virtualenv #56
Comments
After further inspection, it seems to me that the Regarding the empty string value of So the question is: why was this block made
Am I missing anything, or can we just remove that |
Yes, making that |
Using PyCall with the globally installed python works flawlessly. But I mainly work in virtualenvs, and would like julia to interact with my virtualenv's python.
I hoped just activating the virtualenv would be enough, but
@pyimport numpy
(and others) won't work when a virtualenv (in the following at/home/beyer/sci-env3-dyn
) is activated.First, everything works with python in the virtualenv:
Now, through julia called while inside the virtualenv:
So, for some reason, when called through julia, neither
sys.executable
norsys.path
are correctly set. What is insys.path
(namely, stuff inside/home/beyer/insts/lib/python3.3
) is the python install which has been used to create the virtualenv. I think pycall should "just work" when a virtualenv is active.I don't really know how to debug this further, but in the following are some env-variables which might help debugging:
The text was updated successfully, but these errors were encountered: