Reputation: 155
I want to use Jupyter Notebook with Python 3 (which according to my terminal it's the 3.7.4 version) but when I open Jupyter Notebook it shows me "Python 2" in the corner.
I first installed pip and after numerous tries someone told me "do it with conda and your problem will be fixed" and I did, but the problem is still there.
From what I have look in internet and what my profesor and friends told me, it should be working.
Any suggestions?
P.S.: I even read some questions asked here but the answers didn't work for me.
EDIT: Following @Fabioconcina suggestiong, maybe helpful to show what I obtain by using jupyter --paths
in the terminal.
So I got the following:
Upvotes: 0
Views: 2597
Reputation: 155
All your suggestions were right. What I had to do was to open a new file. In all yours suggestions I was opening the first file I was working. Thank you all for your help.
Upvotes: 1
Reputation: 2154
Using the where
command in windows (and, I think which
in linux/mac) can help diagnose this problem. For instance, if I run
> where python
on my computer, I get the following response
C:\ProgramData\Anaconda3\python.exe
I can use this to track down what my computer wants to run if I type in other commands, for instance:
> where jupyter
C:\ProgramData\Anaconda3\Scripts\jupyter.exe
will help me sus out what particular executable is being run when I type a command.
It is worth investigating what version of ipython you have installed as well, since that will affect what python kernels you can support. The ipython documentation notes that
IPython 6.0 stopped support for Python 2, so installing IPython on Python 2 will give you an older version (5.x series).
which suggests to me that you're running a pre-6.0 version. You can use conda list
to list out the versions of everything you have installed.
Upvotes: 0
Reputation: 419
if you have installed anaconda you can update your python by using conda. Please run your terminal or command prombt as administrator, and just use any of the method given below
1. conda install python=$pythonversion$
or if you just need any updated version of python
2. conda update python
or
3. conda create --name py374 python=3.7.4 --channel conda-forge
Upvotes: 0