標籤:

Python 3.6中安裝jupyter notebook

Python 3.6中安裝jupyter notebook

來自專欄 Antenna的機器學習筆記

首先要確定你不是使用了virtualenv,並且是在python3.6的安裝目錄下,我就因為這樣造成了一些莫名其妙的問題,這個確認了,其他就很好辦了:

C:>cd C:UsersAdministratorAppDataLocalProgramsPythonPython36ScriptsC:UsersAdministratorAppDataLocalProgramsPythonPython36Scripts>workon py3MachineLearning(py3MachineLearning) C:UsersAdministratorAppDataLocalProgramsPythonPython36Scripts>d:(py3MachineLearning) D:>pip install ipython notebookLooking in indexes: http://pypi.douban.com/simpleRequirement already satisfied: ipython in c:usersadministratorenvspy3machinelearninglibsite-packages (6.5.0)Collecting notebook Downloading http://pypi.doubanio.com/packages/5e/7c/7fd8e9584779d65dfcad9fa2e09c76131a41f999f853a9c7026ed8585586/notebook-5.6.0-py2.py3-none-any.whl (8.9MB) 100% |████████████████████████████████| 8.9MB 839kB/sRequirement already satisfied: pickleshare in c:usersadministratorenvspy3machinelearninglibsite-packages (from ipython) (0.7.4)Requirement already satisfied: jedi>=0.10 in c:usersadministratorenvspy3machinelearninglibsite-packages (from ipython) (0.12.1)Requirement already satisfied: colorama; sys_platform == "win32" in c:usersadministratorenvspy3machinelearninglibsite-packages (from ipython) (0.3.9)Requirement already satisfied: pygments in c:usersadministratorenvspy3machinelearninglibsite-packages (from ipython) (2.2.0)Requirement already satisfied: setuptools>=18.5 in c:usersadministratorenvspy3machinelearninglibsite-packages (from ipython) (40.0.0)Requirement already satisfied: simplegeneric>0.8 in c:usersadministratorenvspy3machinelearninglibsite-packages (from ipython) (0.8.1)Requirement already satisfied: backcall in c:usersadministratorenvspy3machinelearninglibsite-packages (from ipython) (0.1.0)Requirement already satisfied: decorator in c:usersadministratorenvspy3machinelearninglibsite-packages (from ipython) (4.3.0)Requirement already satisfied: prompt-toolkit<2.0.0,>=1.0.15 in c:usersadministratorenvspy3machinelearninglibsite-packages (from ipython) (1.0.15)Requirement already satisfied: traitlets>=4.2 in c:usersadministratorenvspy3machinelearninglibsite-packages (from ipython) (4.3.2)Requirement already satisfied: ipython-genutils in c:usersadministratorenvspy3machinelearninglibsite-packages (from notebook) (0.2.0)Requirement already satisfied: Send2Trash in c:usersadministratorenvspy3machinelearninglibsite-packages (from notebook) (1.5.0)Requirement already satisfied: tornado>=4 in c:usersadministratorenvspy3machinelearninglibsite-packages (from notebook) (5.1)Requirement already satisfied: jupyter-core>=4.4.0 in c:usersadministratorenvspy3machinelearninglibsite-packages (from notebook) (4.4.0)Requirement already satisfied: nbconvert in c:usersadministratorenvspy3machinelearninglibsite-packages (from notebook) (5.3.1)Requirement already satisfied: terminado>=0.8.1 in c:usersadministratorenvspy3machinelearninglibsite-packages (from notebook) (0.8.1)Requirement already satisfied: jupyter-client>=5.2.0 in c:usersadministratorenvspy3machinelearninglibsite-packages (from notebook) (5.2.3)Requirement already satisfied: pyzmq>=17 in c:usersadministratorenvspy3machinelearninglibsite-packages (from notebook) (17.1.2)Requirement already satisfied: ipykernel in c:usersadministratorenvspy3machinelearninglibsite-packages (from notebook) (4.9.0)Requirement already satisfied: prometheus-client in c:usersadministratorenvspy3machinelearninglibsite-packages (from notebook) (0.3.1)Requirement already satisfied: nbformat in c:usersadministratorenvspy3machinelearninglibsite-packages (from notebook) (4.4.0)Requirement already satisfied: jinja2 in c:usersadministratorenvspy3machinelearninglibsite-packages (from notebook) (2.10)Requirement already satisfied: parso>=0.3.0 in c:usersadministratorenvspy3machinelearninglibsite-packages (from jedi>=0.10->ipython) (0.3.1)Requirement already satisfied: wcwidth in c:usersadministratorenvspy3machinelearninglibsite-packages (from prompt-toolkit<2.0.0,>=1.0.15->ipython) (0.1.7)Requirement already satisfied: six>=1.9.0 in c:usersadministratorenvspy3machinelearninglibsite-packages (from prompt-toolkit<2.0.0,>=1.0.15->ipython) (1.11.0)Requirement already satisfied: bleach in c:usersadministratorenvspy3machinelearninglibsite-packages (from nbconvert->notebook) (2.1.4)Requirement already satisfied: testpath in c:usersadministratorenvspy3machinelearninglibsite-packages (from nbconvert->notebook) (0.3.1)Requirement already satisfied: entrypoints>=0.2.2 in c:usersadministratorenvspy3machinelearninglibsite-packages (from nbconvert->notebook) (0.2.3)Requirement already satisfied: mistune>=0.7.4 in c:usersadministratorenvspy3machinelearninglibsite-packages (from nbconvert->notebook) (0.8.3)Requirement already satisfied: pandocfilters>=1.4.1 in c:usersadministratorenvspy3machinelearninglibsite-packages (from nbconvert->notebook) (1.4.2)Requirement already satisfied: pywinpty>=0.5; os_name == "nt" in c:usersadministratorenvspy3machinelearninglibsite-packages(from terminado>=0.8.1->notebook) (0.5.4)Requirement already satisfied: python-dateutil>=2.1 in c:usersadministratorenvspy3machinelearninglibsite-packages (from jupyter-client>=5.2.0->notebook) (2.7.3)Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in c:usersadministratorenvspy3machinelearninglibsite-packages (from nbformat->notebook) (2.6.0)Requirement already satisfied: MarkupSafe>=0.23 in c:usersadministratorenvspy3machinelearninglibsite-packages (from jinja2->notebook) (1.0)Requirement already satisfied: html5lib!=1.0b1,!=1.0b2,!=1.0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8,>=0.99999999pre in c:usersadministratorenvspy3machinelearninglibsite-packages (from bleach->nbconvert->notebook) (1.0.1)Requirement already satisfied: webencodings in c:usersadministratorenvspy3machinelearninglibsite-packages (from html5lib!=1.0b1,!=1.0b2,!=1.0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8,>=0.99999999pre->bleach->nbconvert->notebook) (0.5.1)Installing collected packages: notebookSuccessfully installed notebook-5.6.0(py3MachineLearning) D:personal>ipython notebook[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions.[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in the future[I 13:25:15.785 NotebookApp] Serving notebooks from local directory: D:personal[I 13:25:15.787 NotebookApp] The Jupyter Notebook is running at:[I 13:25:15.789 NotebookApp] http://localhost:8888/?token=f4fda41b8d3c2fa737b6be612fc33634227fe91a0fd7032f[I 13:25:15.791 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).[C 13:25:15.798 NotebookApp] Copy/paste this URL into your browser when you connect for the first time, to login with a token: http://localhost:8888/?token=f4fda41b8d3c2fa737b6be612fc33634227fe91a0fd7032f[I 13:25:21.884 NotebookApp] Accepting one-time-token-authenticated connection from ::1[I 13:25:33.835 NotebookApp] Kernel started: 7ca8bbcc-c472-4ef4-8029-a651211d6be0[I 13:25:33.861 NotebookApp] 302 GET /notebooks/introduction_to_ml_with_python/images/iris_petal_sepal.png (::1) 4.00ms[I 13:25:35.630 NotebookApp] Adapting to protocol v5.1 for kernel 7ca8bbcc-c472-4ef4-8029-a651211d6be0[I 13:27:33.324 NotebookApp] Saving file at /introduction_to_ml_with_python/01-introduction.ipynb[I 13:29:34.400 NotebookApp] Saving file at /introduction_to_ml_with_python/01-introduction.ipynb

推薦閱讀:

Jupyter lab 安裝及多kernel配置
jupyter notebook使用技巧

TAG:jupyter | IPython |