Jupyter | 如何在Jupyter应用中添加、删除虚拟环境

Jupyter中添加虚拟环境步骤:

  1. 打开Anaconda Prompt,用conda创建虚拟环境,可指定Python版本:
conda create -n myenv python=3.6
  1. 进入创建的虚拟环境:
activate myenv
  1. 安装ipykernel包:
pip install --user ipykernel
  1. 将虚拟环境加入Jupyter:
python -m ipykernel install --user --name=myenv
  1. 运行jupyter notebook或jupyter lab,即可使用刚刚创建的虚拟环境

Jupyter中删除虚拟环境步骤:

  1. 查看安装了哪些虚拟环境kernel(在base或虚拟环境下运行都可以):
jupyter kernelspec list
  1. 删除指定的kernel:
jupyter kernelspec uninstall myenv

相关推荐

  1. Jupyter | 如何Jupyter应用添加删除虚拟环境

    2024-06-09 21:24:04       31 阅读
  2. 如何指定的conda虚拟环境启动Juptyter

    2024-06-09 21:24:04       54 阅读
  3. jupyter notebook删除kernel & conda 删除虚拟环境

    2024-06-09 21:24:04       49 阅读
  4. jupyter | jupyter使用conda虚拟环境

    2024-06-09 21:24:04       41 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-09 21:24:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-09 21:24:04       101 阅读
  3. 在Django里面运行非项目文件

    2024-06-09 21:24:04       82 阅读
  4. Python语言-面向对象

    2024-06-09 21:24:04       91 阅读

热门阅读

  1. Apache Doris 2.0.11 版本正式发布

    2024-06-09 21:24:04       26 阅读
  2. IntelliJ IDEA安装

    2024-06-09 21:24:04       27 阅读
  3. OnlyOwner在Solidity中是一个修饰符,TypeError:

    2024-06-09 21:24:04       29 阅读
  4. 【C/C++】C语言实现std::move

    2024-06-09 21:24:04       33 阅读
  5. Search用法Python:深入探索搜索功能的应用与技巧

    2024-06-09 21:24:04       32 阅读
  6. spring框架限制接口是否要登录过才能访问

    2024-06-09 21:24:04       33 阅读
  7. 如何用结构化写好GPT的Prompt提示词

    2024-06-09 21:24:04       32 阅读
  8. DefaultTokenServices源码

    2024-06-09 21:24:04       24 阅读
  9. Fatfs

    Fatfs

    2024-06-09 21:24:04      20 阅读