栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

“21天好习惯”第一期-7

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

“21天好习惯”第一期-7

Jupyter Notebook 安装使用

  1. 安装 python(略)
  2. 安装 python 虚拟环境
> pip install virtualenv -i https://pypi.tuna.tsinghua.edu.cn/simple/

这里用 -i 参数指定了国内源,方便快速下载

  1. 创建虚拟环境
> virtualenv -p python3 py3

这里创建的是 python 3 的虚拟环境,目录名叫py3

  1. 启动 python 虚拟环境
> source py3/bin/activate
  1. 在虚拟环境中安装jupyter
(py3)> pip install jupyter -i  https://pypi.tuna.tsinghua.edu.cn/simple/
  1. 安装所需的python库
(py3)> pip install numpy -i  https://pypi.tuna.tsinghua.edu.cn/simple/
(py3)> pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple/
(py3)> pip install pandas -i  https://pypi.tuna.tsinghua.edu.cn/simple/
(py3)> pip install sklearn -i  https://pypi.tuna.tsinghua.edu.cn/simple/
  1. 创建目标目录并进入
(py3)> mkdir algorithm
(py3)> cd algorithm
  1. 启动jupyter notebook
(py3)> jupyter notebook

默认启动端口为8888,复制链接后可以通过浏览器访问。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/357223.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号