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

 

沒有留言:

demo_article

使用 msty.app 和 Knowledge Stacks 建立個人知識庫系統 說明 嘗試利用local llm自動從文字檔轉成影音檔 利用AI自動對文件檔產生影音檔案 - YouTube 引言 在資訊爆炸的時代,我們每天接收大量的資訊,但如何有效地管理...