As shown in the following snippets - the paths point for python
and ipython
seem to all point to 3.x
- however the result is launching 2.x
. I am on macos High Sierra
Any thoughts?
Which
python
are we using (3.X):which python /usr/local/bin/python
$python --version Python 3.6.4
Which
python
isipython
pointing to (3.X ?)
cat $(which ipython) #!/usr/local/bin/python import re import sys from IPython import start_ipython if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(start_ipython())
So let's run
ipython
- and then whichpython
version is launched (2.X ??):$ipython Python 2.7.15 (default, Jun 26 2018, 09:40:54) Type "copyright", "credits" or "license" for more information.
IPython 5.5.0 -- An enhanced Interactive Python.
Update There was a comment about ipython3
: I had looked into that as well before posting. After running
pip3 install ipython
the results were Requirement already satisfied
for all dependencies. Afterwards however ipython3
still does not appear in the $PATH
.
ipython3
!ipython3
in the$PATH
- I had checked that earlier.ipython3
andipython
using apt ( if you're using a debian base distro ), the only time that ipython uses python3 is when u are running it inside a virtualenv that has been created using python3, trysudo apt install ipython3 && pip3 install ipython
macos
: updated the question.