1

I was trying to be able to select to create a 2.x or 3.x python notebook in Jupyter Notebook. So I followed the solution I found here at Stack: Using both Python 2.x and Python 3.x in IPython Notebook

creating a 2.x or 3.x python notebook in Jupyter Notebook

after that, I can't run a cell at Jupyter without the following error:

ModuleNotFoundError: No module named 'pandas'

I've already tried reinstalling conda, the packages, jupyter, and creating a new env. Nothing works.

Any ideas?

one more thing, after reinstalling conda, all my jupyter notebooks shows the Kernel Dead error below:

FileNotFoundError: [Errno 2] No such file or directory: '/home/user/anaconda3/envs/py36/bin/python'

2
  • Kernel? You mean Python version, right? Commented Dec 30, 2017 at 1:23
  • yeap. it's a 'Kernel error'. at the jupyter it shows 'kernel dead' Commented Dec 30, 2017 at 1:31

2 Answers 2

1

run the command... pip install pandas

if it returns that pip is an unrecognized command, then copy all of this https://bootstrap.pypa.io/get-pip.py

save it in a file called, get-pip.py then run in command prompt or terminal: python get-pip.py

After that run pip install pandas

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

5 Comments

If you have Python 2 and 3 both installed, make sure to use the pip for 3, not 2.
hey Michael! thanks! one more thing, after reinstalling conda, all my jupyter notebooks shows the error below: FileNotFoundError: [Errno 2] No such file or directory: '/home/user/anaconda3/envs/py36/bin/python' I believe the kernel is linking directly to this py36 I created when I tried the first step I explained. (I didn't tried your suggestion yet. just in case the update changes anything)
I need to know ur OS. Then I can help you find your $PATH
Linux Ubuntu x86_64-pc-linux-gnu
@MichaelPresman i fixed it with: python3 -m pip install ipykernel python3 -m ipykernel install --user tks again
0

I fixed it with:

python3 -m pip install ipykernel python3 -m ipykernel install --user

tks y'all!

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.