-
Notifications
You must be signed in to change notification settings - Fork 293
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
!pip not installing packages as expected #6864
Comments
%pip is actually the command you should use. !pip just does a shell execute and will use the python on the path. |
Personally I think we should put up an error if the user has !pip or !conda as they don't do what the user expects. |
Your is a regression. And yes, we should use %pip |
Agree that we should show an error for |
Not sure about the error, as users might want to do that. A suggestion probably. |
This is a common problem in the jupyter tools ecosystem all up. Consider using code-level diagnostics (squiggles, etc) to notify the user. |
Suggestion:
|
I recently installed Python 3.9.6 from python.org and tried to run notebook against this interpreter but ran into a couple of issues.
Problem
import pandas as pd
, it prompts to ask to install ipykernel!pip install pandas
, it works but it installs the pandas package topython 2.7
as that the interpreter in the PATHProposal
The underling problem is the disconnect between Python active interpreter, Jupyter kernel, and the python interpreter in the PATH. If users are using pyenv, venv, or conda, the extension will activate the environment, which will set up the environment properly, however we don't have such thing for the vanilla Python interpreter.
We should probably
!pip
if thepip
in the PATH is not the one in the interpreter behind the selected kernelpip
from the interpreter of the selected kernel to the PATH temporarilyThe text was updated successfully, but these errors were encountered: