更改jupyter环境的方法
更新:HHH   时间:2023-1-7


这篇文章将为大家详细讲解有关更改jupyter环境的方法,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

更改jupyter环境的方法:

查看我的 python 环境

$ conda info -e
# conda environments:
#
base                  *  /anaconda3
caffe2                   /anaconda3/envs/caffe2
cv                       /anaconda3/envs/cv
tf                       /anaconda3/envs/tf

设置 tf 作为 jupyter 启动时的 Python 环境

首先激活 tf 环境

$ source activate tf

在 tf 环境下安装 jupyter

(tf) :~ $ conda install jupyter
# 最左边 环境名 tf

启动 jupyter

(tf) :~ $ jupyter notebook

关于更改jupyter环境的方法就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。

返回编程语言教程...