在Anaconda虚拟环境中安装jupyter notebook和spyder

Anaconda虚拟环境中安装jupyter notebook

  1. 使用conda env list命令查看已有的虚拟环境(首次只有base)
  2. 使用conda create -n your_env_name python=x.x创建虚拟环境
  3. 使用conda activate your_env_name进入新创建的虚拟环境
  4. 使用conda install ipykernel 安装必要插件
  5. 使用python -m ipykernel install --name Name 将环境添加到Jyputer中(Name是此环境显示在Jyputer中的名称,可自定义)

Anaconda虚拟环境中安装spyder

想在spyder中用到虚拟环境中的库,需要在虚拟环境中安装并启动。

conda create -n myenv python=x.x
conda activate myenv
conda install spyder
spyder

 

————————————————
参考链接:
https://blog.csdn.net/weixin_44109827/article/details/127195459

https://stackoverflow.com/questions/30170468/how-to-run-spyder-in-virtual-environment

posted @ 2023-03-02 20:38  icydengyw  阅读(480)  评论(0编辑  收藏  举报