1

I am running a Jupyter notebook instance and it has both python 2 and python 3 kernels. However, when i use the python 2 kernel and execute below statements,

import sys
sys.executable

I get python 3 path

'/usr/bin/python3.4'

How do i force it to use python 2.7

enter image description here

2
  • If you haven't done already restart the Kernel in the Kernel dropdown menu. If that isn't the problem I would just reinstall the kernel. You are not using Conda by any chance? Commented Jul 14, 2017 at 15:50
  • Re-installing jupyter using pip instead of pip3 is what worked Commented Jul 14, 2017 at 17:24

1 Answer 1

0

Re-installing Jupyter with pip instead of pip3 is what worked

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.