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

 

沒有留言:

如何下載Facebook 相簿跟影片

影片:透過chrome plug-in : Video Downloader for Facebook<sup>TM</sup> 相簿: 透過chrome plug-in : Tampermonkey 搭配script : Facebo...