美文网首页
Jupyter简单入门

Jupyter简单入门

作者: 0error_ | 来源:发表于2020-11-10 14:52 被阅读0次
如何在jupyter中使用虚拟环境:

首先进入终端,输入conda env list,查看到需要用的虚拟环境(以pytorch为例)
进入该虚拟环境:conda activate pytorch

conda install ipykernel
(也可以pip install ipykernel)
python -m ipykernel install --name 这里写在jupyter中该环境的名称
(比如python -m ipykernel install --name pytorch_cpu)
这一步可能的报错:

Permission denied 'usr/local/share'
解决办法:
python -m ipykernel install --user --name pytorch_cpu

再进入终端,输入jupyter notebook,可以看到就有“pytorch_cpu”啦


image.png

https://blog.csdn.net/weixin_42382050/article/details/90214311

如何导出py文件:
image.png

相关文章

  • Jupyter notebook安装及快捷操作

    安装 Jupyter notebook Jupyter Notebook 快速入门 简单来说,只需pip inst...

  • Jupyter简单入门

    如何在jupyter中使用虚拟环境: 首先进入终端,输入conda env list,查看到需要用的虚拟环境(以p...

  • Jupyter Notebook 快速入门

    Jupyter Notebook 快速入门(上)Jupyter Notebook 快速入门(下)

  • Jupyter入门

    参考:python数据分析神器Jupyter notebook快速入门 Jupyter notebook入门 概述...

  • Jupyter Notebook 快速入门

    Jupyter Notebook 快速入门 Jupyter Notebook(此前被称为 IPython note...

  • jupyter

    jupyter --.ipynb格式文件入门

  • Jupyter notebook入门教程(上)

    本文将分上下两部分简单介绍Jupyter notebook的入门教程,英文原文出处: Getting starte...

  • Python入门:入门语句

    二、入门语句 本章内容运行环境:Jupyter Notebook关于Jupyter Notebook的使用,可以参...

  • 绘图工具plotly 入门

    plotly是一个强大的绘图工具,从最简单的例子来讲plotly的入门: 在此我们以jupyter noteboo...

  • jupyter入门

    基本操作以In[ ]开头表示这是一个代码单元。在代码单元里,你可以输入任何代码并执行。例如,键盘输入1+2,然后按...

网友评论

      本文标题:Jupyter简单入门

      本文链接:https://www.haomeiwen.com/subject/jwpdmktx.html