0
我爲Python安裝了jupyter包,但是當我嘗試使用它時,出現SyntaxError:invalid syntax。在Python上使用Jupyter時出現SyntaxError
我試圖刪除Python並重新安裝它,但我得到了相同的結果。
我使用Windows 10和Python 2.7.13 如果需要更多信息,請詢問。
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import jupyter
>>> jupyter notebook
File "<stdin>", line 1
jupyter notebook
^
SyntaxError: invalid syntax
你應該嘗試直接從終端調用'jupyter notebook',而不是從python內部調用 – dangom
[有關啓動jupyter的更多信息](https://jupyter.readthedocs.io/en/latest/running.html#starting-the - 筆記本,服務器) – Orange