简体   繁体   English

Jupyter Python3内核安装-仅离线

[英]Jupyter Python3 Kernel Install - Offline Only

Currently, I am working in a VM that does not have an internet connection. 目前,我正在没有Internet连接的VM中工作。

I have Python2 installed installed on this machine and have been using it fine within Jupyter. 我已经在此计算机上安装了Python2,并且在Jupyter中一直很好地使用它。 I have installed Anaconda 3.6 and would like to create a kernel inside Jupyter for Python3 in addition to the Python2 Kernel that is present. 我已经安装了Anaconda 3.6,除了现有的Python2内核外,还想在Jupyter中为Python3创建一个内核。

I have followed another stackexchange question: How do I add python3 kernel to jupyter (IPython) 我遵循了另一个stackexchange问题: 如何将python3内核添加到jupyter(IPython)

and some documentation: https://ipython.readthedocs.io/en/latest/install/kernel_install.html#kernels-for-python-2-and-3 和一些文档: https : //ipython.readthedocs.io/en/latest/install/kernel_install.html#kernels-for-python-2-and-3

The command that is doing something, just not the right something is: 正在执行某项操作(而不是正确执行某项操作)的命令是:

/path/to/kernel/env/bin/python -m ipykernel install

No matter where I point it, it installs another kernel, but with Python 2.7... 不管我在哪里指向它,它都会安装另一个内核,但是使用Python 2.7 ...

Any suggestions? 有什么建议么?

对于我的情况,正确的答案是指定python3 jupyter-notebook路径,而不是仅使用默认的jupyter笔记本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM