4步将 venv 环境添加到 Jupyter Notebook 内核中 (Windows10)

第一步: 新建并激活 conda 环境

python -m venv test

cd test

Scripts\activate.bat

第二步:安装 ipykernel

pip install  ipykernel

第三步: 将 环境添加到 jupyter notebook 中

python -m ipykernel install --user --name=test

第四步: 如需删除 kernel

jupyter kernelspec uninstall myenv

完成。

你可能感兴趣的:(Python,conda,jupyter,python)