Linux 拨号vps windows公众号手机端

jupyter中怎么配置python环境

lewis 9年前 (2016-11-12) 阅读数 8 #程序编程
文章标签 jupyterpython

在jupyter中配置python环境可以通过以下步骤进行:

  1. 安装jupyter notebook:首先确保已经安装了jupyter notebook,如果没有安装可以通过pip安装:pip install jupyter

  2. 创建一个新的jupyter notebook:打开命令行窗口,输入jupyter notebook,会自动在浏览器中打开jupyter notebook的界面。

  3. 在jupyter notebook中配置python环境:在jupyter notebook中点击"New"按钮,选择"Python3"创建一个新的python notebook。

  4. 安装需要的库:在jupyter notebook中使用!pip install <package_name>命令来安装需要的库,例如!pip install numpy

  5. 导入库并使用:在python notebook中导入库,例如import numpy as np,然后可以开始编写代码并执行。

通过以上步骤,就可以在jupyter notebook中配置python环境并开始使用python进行编程了。

版权声明

本文仅代表作者观点,不代表米安网络立场。

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

热门