10

at the beginning I had installed the newest Python 3.9 version. However, on this version I was not able to install tensorflow, which I read is not supporting this version. After it, I installed Python 3.8.7 but my jupyter notebook is still using Python 3.9. How can I change version in Jupyter Notebook to use 3.8.7 instead of 3.9? Thanks in advance.

6
  • How did you install python 3.8? using a virtual environment like conda? Commented Jan 5, 2021 at 9:29
  • No, I just installed it through normal installator from python webpage Commented Jan 5, 2021 at 9:30
  • Are you using a virtual environment manager like conda at all? This way you can easily create environments with different versions of Python. Commented Jan 5, 2021 at 9:31
  • No, I am using jupyter notebook just by typing in cmd "jupyter notebook" and I would like to know how to easily switch this version inside the notebook Commented Jan 5, 2021 at 9:32
  • 1
    Use virtualenv and start jupyter inside it. E.g. pipenv run jupyter-notebook - this way it will be guaranteed that you start with correct python interpreter and correct set of libraries. poetry could be used the same way too. Commented Jan 5, 2021 at 9:36

1 Answer 1

17
pip3 install ipykernel --upgrade
python3 -m ipykernel install --user

References:

Jupyter Notebook can't find modules for python 3.6

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.