jupyter / help

:sparkles: Need some help or have some questions? Please visit our Discourse page.
https://discourse.jupyter.org
291 stars 97 forks source link

jupyter and python3 (HOWTO) #388

Open ouboub opened 6 years ago

ouboub commented 6 years ago

I am using Ubuntu 16.04 and installed juyper via pip (9.03 since pip 10 is buggy) which is then installed in /usr/local/lib/python2.7/dist-packages

and indeed the following test.py works python test.py where

test.py 
import jupyter_client as client

what does not work is

python3 test.py

ImportError: No module named 'jupyter_client'

Now i want to use the matlab kernel which is based on the jupyter client and using python3. So how can I configure reinstall or reconfigure python3 that it knows about the jupyther client?

thanks

Uwe Brauer

takluyver commented 6 years ago

pip installs into the version of Python it's running on. You can check this with pip --version.

On Ubuntu, pip for Python 3 is typically called pip3. You can also run python3 -m pip to explicitly use pip on a given Python version.