-
Notifications
You must be signed in to change notification settings - Fork 189
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's sys.executable
points to Julia's binary on Windows
#958
Comments
Isn't that correct? We are not running |
Oh, I see, the definition of
(emphasis added) See also these discussions about
It seems like this happens a lot for programs embedding Python. In our case, |
Very interesting definitions. On Linux the behavior is the following:
as ,IMO, was expected. Apparently, there is no clear correspondence between |
It looks like |
Is there a fix for this issue? I have to use a python library that makes use somewhere of |
Ideally, someone has to figure out the In the meantime, one could simply do: pyimport("sys").executable = PyCall.python |
When Python's
sys
module is loaded viapyimport("sys")
itsexecutable
returns Julia's path instead of Python's. The same doesn't happen on Linux.To reproduce this issue (Windows 10, Julia 1.7.0, PyCall 1.93.0):
The text was updated successfully, but these errors were encountered: