I had done pip install --user jupyter.
It install jupyter in .local/.
I uninstalled it with : pip uninstall jupyter
It seemed to uninstall and whic jupyter returns nothing.
However, all files still reside under .local. pip list does show ipython and also ipython-genutils.
And when I run .local/bin/ipython it runs.
Could you tell me how to uninstall jupyter?
Thanks
T
Related
I installed jupyter notebook with pip using python -m pip install jupyter and nbextensions using pip install jupyter_contrib_nbextensions && jupyter contrib nbextension install
My current jupyter-notebook version is 6.1.6 which makes nbextensions to show blank tab as per this thread . However the solution is to downgrade the notebook to 6.1.5 version.
How do I do that using pip?
pip install notebook==6.1.5 will downgrade the jupyter notebook
You can specify a version number:
pip install jupyter-notebook==6.1.5
How do you update jupyterlab using conda or pip?
I understand that conda update jupyter updates jupyter notebook (I have Anaconda), but I'm not sure this takes care of jupyterlab as well.
conda update jupyter will not automatically update jupyterlab. You have to explicitly request an update of jupyterlab:
conda update jupyterlab
You may need to specify conda-forge:
conda update -c conda-forge jupyterlab
EDIT:
Trying to update to 3.0, conda update jupyterlab did not work for me (result of jupyter lab --version still was 2.x) and when I tried to specify conda-forge or jupyterlab=3.0 the command hung for too long. I gave up after almost an hour of solving environment. The following worked for me from the Anaconda shell:
conda uninstall jupyterlab
conda install -c conda-forge jupyterlab=3
I was getting frustrated by trying to update Jupyterlab on Anaconda and failing.
Eventually I realized that this line of code works for me:
conda update --all
If you prefer using pip:
pip install --upgrade jupyterlab
Or if you'd like a specific version:
pip install jupyterlab==1.2.4
Depending on your rights, you might also need to add a --user in there:
pip install jupyterlab==1.2.4 --user
After a lot of back-and-forth with the above methods with conda, none of which worked for me to upgrade nodejs to > v14.x - below is the solution that worked for me, thanks to the link below:
conda search nodejs # Search nodejs version under conda.
conda install nodejs=14.7.0 -c conda-forge
https://www.programmersought.com/article/39027053707/
Experience has taught me, that when you need to upgrade multiple pip packages, the best way is to do it all at once (pip will find a good combination of versions and requirements).
So what I did is this.
Figure out what jupyterlab uses (your output may differ):
$ jupyter --version
Selected Jupyter core packages...
IPython : 8.9.0
ipykernel : 6.20.2
ipywidgets : 8.0.4
jupyter_client : 8.0.1
jupyter_core : 5.1.5
jupyter_server : 2.1.0
jupyterlab : 3.5.3
nbclient : 0.7.2
nbconvert : 7.2.9
nbformat : 5.7.3
notebook : 6.5.2
qtconsole : 5.4.0
traitlets : 5.8.1
Put all those in a single line and run --upgrade:
$ pip install --upgrade IPython ipykernel ipywidgets jupyter_client jupyter_core jupyter_server jupyterlab nbclient nbconvert nbformat notebook qtconsole traitlets
All went smoothly.
In windows 7, I try to install jupyter notebook using:
pip3 install jupyter
But I get error:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\AppData\Local\Temp\pip-build-5in28fbw\pywinpty\
Best thing to do is to install Anaconda here
It includes its own "conda" terminal window for "windows", which will make it a lot easier for you to invoke jupiter notebook from the conda terminal, regardless of which folder you are in
First update if using linux system:
sudo apt-get update
sudo apt-get upgrade
Restart the system and try below steps:
Installing Jupyter with pip
As an existing or experienced Python user, you may wish to install Jupyter using Python’s package manager, pip, instead of Anaconda.
If you have Python 3 installed (which is recommended):
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install jupyter
If you have Python 2 installed:
sudo python -m pip install --upgrade pip
sudo python -m pip install jupyter
Congratulations, you have installed Jupyter Notebook! To run the notebook, run the following command at the Terminal (Mac/Linux) or Command Prompt (Windows Run CMD in Admin):
jupyter notebook
Update your setuptools and pip first then retry:
pip install --upgrade setuptools pip
Edit:
According to the pip website (https://pip.pypa.io/en/stable/installing), I should already have pip installed with my Python version 2.9.7, but I assumed that I don't because of the error message.
I then attempted to install pip by downloading get-pip.py. It was successful but I got the messages:
Found existing installation: pip 1.3.1
Uninstalling pip-1.3.1:
Successfully uninstalled pip-1.3.1
Successfully installed pip-8.1.1 wheel-0.29.0
So it seems I did have a version of pip, so I'm not sure why I was getting the error message described in my original post.
But when I tried to then pip install jupyter, I just get:
-bash: pip: command not found
again. Can someone tell me what I'm doing wrong please?
I need to install iPython Notebook. I already have Python (version 2.7.9) installed on my Macbook, running OS X (version 10.7.5).
After some initial investigation, I saw somebody say that I could just run:
pip install "ipython[notebook]"
When I did this however, I got:
-bash: pip: command not found
So do I have to install pip first? And then use pip to install the Notebook? I'm out of my depth and a little confused!
Okay so my problem was that pip was installed, but in a location that was not included in my $PATH variable.
One of the answers here is relevant.
Using Python 2.7 installed via homebrew. I then used pip to install IPython. So, IPython seems to be installed under:
/usr/local/lib/python2.7/site-packages/
I think this is true because there is a IPython directory and ipython egg.
However, when I type ipython in the terminal I get:
-bash: ipython: command not found
I do not understand why this ONLY happens with IPython and not with python? Also, how do I fix this? What path should I add in .bashrc? And how should I add?
Currently, my .bashrc reads:
PATH=$PATH:/usr/local/bin/
Thanks!
I had this issue too, the following worked for me and seems like a clean simple solution:
pip uninstall ipython
pip install ipython
I'm running mavericks and latest pip
Check IPython whether is installed by below command:
$python -m IPython
If you got this result as above picture.
Then run this command on terminal and add into ~/.bash_profile file
$alias ipython='python -m IPython'
So try run "ipython" again on terminal. It works fine for me.
Reference topics:
ipython on MacOS 10.10 - command not found
iPython installed but not found
Create .pydistutils.cfg in your homedir with following content:
[global]
verbose=1
[install]
install-scripts=$HOME/bin
[easy_install]
install-scripts=$HOME/bin
And then: pip install -U --user ipython. Of course $HOME/bin must be in your $PATH. Packages are going to be installed in $HOME/Library/Python, so user only, not system wide.
Try run brew install ipython:
then run xcode-select --install;
run brew install git,
If you got this result as above picture. Refer to enter link description here
At last, run brew install ipython
I use pip3 install ipython is OK.
maybe ipython rely on python3
After trying to a number of solutions like above with out joy, when I restarted my terminal, Ipython command launched. Don't forgot to restart your terminal after all the fiddling!
P.S. I think the brew install Ipython did it ... but can't be sure.
For me the only thing that helped was:
python -m pip install --upgrade pip
Upgrading pip did the work and all the installations started working properly!
Give it a try.