用Jupyter笔记本使用python3.6而不是3.4

问题描述 投票:0回答:1

我的Jupyter笔记本安装了python3.4,它默认使用它,最近我必须切换到python3.6。

如何在不从系统中删除3.4的情况下将Jupyter笔记本设置为使用python3.6而不是3.4?

我正在使用Ubuntu 14.04 LTS

python-3.x jupyter-notebook jupyter
1个回答
0
投票

您可以这样做的一种方法是设置虚拟环境。

How to setup Virtualenv

一旦你拥有它,我将使用virtualenv作为例子。

你会这样做:

$ cd <directory where notebooks are>
$ virtualenv -p <path to python3.6> venv
$ source venv/bin/activate
$ pip install jupyter

运行jupyter笔记本,看看你在python3.6上

© www.soinside.com 2019 - 2024. All rights reserved.