1

I already have a python3.7 environment on my mac(/Library/Frameworks/Python.framework/Versions/3.7), I used that version for a long time until yesterday I installed anaconda3 accidentally, now the python kernel in my Jupiter notebook switched to python3.69 under anaconda, how can I change the default kernel of Jupiter notebook? I wanna use the python3.7 installed before. thx :)

Jasper Zhou
  • 449
  • 1
  • 5
  • 13
  • So it means your jupyter notebook is using the python version inside anaconda3. Although it's not the answer to your question but you can do one thing. Anaconda allows us to keep multiple version. So you can create a new environment of python3.7 and can access both version from jupyter notebook. A nice explanation is given here : https://towardsdatascience.com/environment-management-with-conda-python-2-3-b9961a8a5097 – Humaun Rashid Nayan Sep 25 '19 at 17:44
  • Also, have a look if it helps: https://stackoverflow.com/questions/28436769/how-to-change-default-anaconda-python-environment – Humaun Rashid Nayan Sep 25 '19 at 17:53
  • Thanks for your help, I solved it by uninstalling conda and reinstall jupyter notebook – Jasper Zhou Sep 26 '19 at 06:35

1 Answers1

0

A Python bundled with Anaconda takes precedence over other Python's. All you need to do is to disable this behavior.

conda config --set auto_activate_base false

Check How do I prevent Conda from activating the base environment by default? for more detail.

Simba
  • 23,537
  • 7
  • 64
  • 76