安裝jupyter notebook的流程(注意python至少需要3.6版本)
- python -m pip install jupyter #安裝jupyter
- python -m pip install –upgrade juypter #更新升級
注:這個會比較慢,最好設置時間,或者利用鏡像更新
設置時間:python -m pip –default-timeout=300 install –upgrade juypter
利用鏡像:python -m pip install –upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple juypter
3.更新結束后,輸入jupyter notebook。
如果報錯:
'jupyter' 不是內部或外部命令,也不是可運行的程序或批處理文件。
(1) 首先添加python路徑到path中,如果還是不行
(2) 命令改為jupyter.py notebook或者 python -m jupyter notebook
如果報錯:
ImportError: cannot import name 'constants' from 'zmq.backend.cython'
則重裝pyzmq,先卸載,后重裝
python -m pip uninstall pyzmq
python -m pip install pyzmq
----------------------------------------更新----------------------------------------------------------------
4.成功打開jupyter notebook之后,頁面打開.ipynb文件,但是報錯kerrnel error :import win32api:找不到指定模塊
打開python測試,已安裝pywin32,但是導入為win32api不成功,
經測試,卸載pywin32 后,重新安裝就可以了,原因未明……