将pipenv创建的virtualenvs虚拟环境导入为jupyter notebook中的kernel
2020-07-16 06:05
337 查看
jupyter notebook添加kernel
创建虚拟环境,并安装相关包
在虚拟环境中安装ipykernel:pip install ipykernel -i https://pypi.douban.com/simple
(用豆瓣源快点儿)
将虚拟环境导入kernel
在虚拟环境中:python -m ipykernel install --user --name 虚拟环境名 --display-name 想要在Jupyter kernel中显示的名字
可是呢,我这出了点问题,平常取名 还是少用中文吧,中文路径 经常遇到坑
重新处理下虚拟环境名就ok啦,如果只是单纯的改文件名不成功的话,就重新创建一个 不含中文的 并符合上图要求的虚拟环境吧,像下面这样就行啦,成功导入啦~
打开jupyter notebook进行验证
上面看出是成功了的,最后的最后,打开自己的jupyter notebook看看吧,kernel中存在刚导入的kernel的话,才是真真真真的成功啦
好了,现在jupyter notebook的kernel中已经有了我们刚才导入的虚拟环境啦~
相关文章推荐
- Jupyter Notebook 如何创建虚拟环境(no module named ‘tensorflow)
- jupyter notebook添加Anaconda虚拟环境的python kernel
- conda创建的虚拟环境中使用jupyter notebook如何关闭
- 在Jupyter Notebook中创建虚拟环境的坑
- 在Jupyter notebook中使用特定虚拟环境中的python的kernel
- jupyter notebook添加Anaconda虚拟环境的python kernel
- 虚拟环境的删除以及jupyter Notebook的内核删除
- 在jupyter notebook中使用conda虚拟环境
- Anaconda及Jupyter notebook配置、管理虚拟环境
- windows系统中Python多版本与jupyter notebook使用虚拟环境的过程
- 关于在tensorflow环境下的jupyter notebook无法导入keras包的问题
- 在Windows下为Jupyter Notebook设置Anaconda的虚拟环境
- tensorflow2.1.0安装以及Pycharm和jupyter notebook使用conda虚拟环境方法
- linux多虚拟环境安装jupyter notebook
- anaconda在虚拟环境中安装jupyter notebook|解决jupyter notebook中不存在虚拟环境的问题|修改jupyter notebook的启动路径
- 搭建Python虚拟环境.virtualenvs
- jupyter notebook中创建tensorflow的kernel
- 在虚拟环境中的Pytorch中安装jupyter notebook
- jupyter notebook使用anaconda虚拟环境
- Ubuntu中anaconda换源、在虚拟环境中安装jupyter notebook并安装tensorflow-gpu