2018年9月7日 星期五

Jupyter notebook can't use both python2 and python3

Recently, I install Jupiter notebook in my new 2018MBP laptop. 

I found I can switch python 2 and python3 on Jupyter  notebook. But I found it often claim 

There is no python modules no matter which python kernel I used.

Therefore  I print sys.version in Jupyter notebook

Import sys

sys.version

===> it always use python 3.7

After  have some try and error, I found the root cause it just because I didn’t install ipykernel with —user

After executed it, everything works fine

#python -m ipykernel install --user

 

沒有留言:

Obsidian 插件介紹:Text Generator

Text Generator 是 Obsidian 的一個插件,它可以根據給定的提示自動生成文本。這個插件使用 GPT-3 語言模型,能夠產生類似人類的文本,非常適合編寫故事、文章、電子郵件和其他類型文本。 主要功能: **生成文本:**根據提示生成各種長度的...