[英]Jupyter Notebook - Python 3 kernel
I have Jupyter Notebook installed and working. 我已经安装了Jupyter Notebook并且可以正常工作。 However it only has python 2 kernel.
但是它只有python 2内核。
I tried reinstalling Anaconda with Python 3.6 version of python, which worked fine (apart from deleting all my environments, etc.), but no change in relation to the kernels available for Jupyter. 我尝试使用Python 3.6版本的python重新安装Anaconda,该版本工作正常(除了删除我的所有环境等),但与Jupyter可用内核的关系没有任何变化。
I have tried installing jupyter using pip (the solution to this question), but I get the error message Requirement already satisfied: jupyter in c:\\users\\username\\anaconda2\\lib\\site-packages
我尝试使用pip安装jupyter( 此问题的解决方案),但我收到错误消息
Requirement already satisfied: jupyter in c:\\users\\username\\anaconda2\\lib\\site-packages
Any ideas? 有任何想法吗?
Are you using pip3 install jupyter
? 您正在使用
pip3 install jupyter
吗?
a more robust solution would be to isolate your environments with something like pipenv. 一个更强大的解决方案是使用pipenv之类的工具隔离您的环境。
pip install pipenv
pipenv install --three
this will install a virtual environment with python3 这将使用python3安装虚拟环境
install packages 安装软件包
pipenv install jupyter
activate the env 激活环境
pipenv shell
start the notebook 启动笔记本
jupyter notebook
You should be able to see the python3 option now. 您现在应该可以看到python3选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.