9

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.

Lescurel
  • 10,749
  • 16
  • 39
Lukasz
  • 339
  • 1
  • 3
  • 11
  • How did you install python 3.8? using a virtual environment like conda? – Lescurel Jan 05 '21 at 09:29
  • No, I just installed it through normal installator from python webpage – Lukasz Jan 05 '21 at 09:30
  • Are you using a virtual environment manager like conda at all? This way you can easily create environments with different versions of Python. – Marioanzas Jan 05 '21 at 09: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 – Lukasz Jan 05 '21 at 09: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. – Alex Yu Jan 05 '21 at 09:36
  • @Lukasz Please, remove salutations. [Should 'Hi', 'thanks', taglines, and salutations be removed from posts?](https://meta.stackexchange.com/questions/2950/should-hi-thanks-taglines-and-salutations-be-removed-from-posts) – maciejwww Apr 18 '21 at 17:55

1 Answers1

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

References:

Jupyter Notebook can't find modules for python 3.6

4b0
  • 21,981
  • 30
  • 95
  • 142
lww1993
  • 131
  • 1
  • 3