-
Notifications
You must be signed in to change notification settings - Fork 302
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
Home Brew or python.org Python does not work on Mac, apt-get python3 does not work on linux & windows store Python too does not work #12808
Labels
bug
Issue identified by VS Code Team member as probable bug
verification-steps-needed
Steps to verify are needed for verification
Milestone
Comments
This was referenced Feb 10, 2023
Similar output from linux as well & here is the output
|
Even using Python org python install on Mac fails, we need to setup the same path for Mac Found that the path that needs to be setup is |
Same problem with Windows store Python |
Could you add the steps to verify the fix? |
This was referenced Feb 28, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bug
Issue identified by VS Code Team member as probable bug
verification-steps-needed
Steps to verify are needed for verification
Tested the following scenarios:
In all of these cases when we install packages a warning is displayed in the terminal indicating the fact that packages are being installed in a directory that is not on the PATH.
Upon further investigation it is found that this directory is a USER_SITE directory.
After all, when we install packages into the global envs we use the
--user
flag.Which results in installing the packages in a user directory (hence USER_SITE).
The work around here is to ensure we add that path into the PATH
This service merely returns the path that needs to be added to the PATH.
Problem
When zmq does not work, then starting jupyter using a global python env fails.
As a result kernel startup fails.
Why don't we see this today for most users
zmq makes it unnecessary to start Jupyter using global python envs
Jupyter executables are stored in the directory that is not in the current path (warning above) as a result, jupyter cannot be located by the packages.
Solution
Here is the installation output for
python3 -m jupyter notebook --user
when running from the terminalNotice the message
Based on the docs on Home Brew we need to add the path, and this is documented on their site too
https://docs.brew.sh/Homebrew-and-Python
The text was updated successfully, but these errors were encountered: