浙江宝业建设集团网站,wordpress 免费插件,天猫商城app,定制产品Hi#xff0c;大家好#xff0c;我是源于花海。本文主要了解如何在指定文件夹的 jupyter 中使用 conda 虚拟环境#xff0c;即在 conda 里面创建虚拟环境、将虚拟环境添加至 jupyter lab/notebook、安装软件包。 目录
一、创建虚拟环境
二、激活并进入虚拟环境
三、安装 … Hi大家好我是源于花海。本文主要了解如何在指定文件夹的 jupyter 中使用 conda 虚拟环境即在 conda 里面创建虚拟环境、将虚拟环境添加至 jupyter lab/notebook、安装软件包。 目录
一、创建虚拟环境
二、激活并进入虚拟环境
三、安装 ipykernel
四、安装 ipykernel将虚拟环境加入 jupyter 内核中
五、从指定文件夹里进入 jupyter
1. 在 指定文件夹的路径处 输入 jupyter lab
2. 进入 指定文件夹的 jupyter lab 的界面
六、安装各软件包 一、创建虚拟环境
conda create -n env_name pythonx.x
二、激活并进入虚拟环境
activate env_name
三、安装 ipykernel
pip install ipykernel -i https://pypi.tuna.tsinghua.edu.cn/simple/
四、安装 ipykernel将虚拟环境加入 jupyter 内核中
python -m ipykernel install --name env_name --display-name env_name
name —— 你的虚拟环境名称display-name —— 在 jupyter 中想显示的名称
检查新虚拟环境是否成功加入内核
jupyter kernelspec list
五、从指定文件夹里进入 jupyter
1. 在 指定文件夹的路径处 输入 jupyter lab
jupyter lab
或者
jupyter notebook 2. 进入 指定文件夹的 jupyter lab 的界面 六、安装各软件包
pip install tensorflow2.1.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install keras2.3.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
······