首页 > 编程语言 >Mac安装python jupyter notebook

Mac安装python jupyter notebook

时间:2022-08-21 12:55:43浏览次数:65  
标签:virtualenv jupyter python notebook Mac 虚拟环境 安装

前置条件:已安装python3 查看当前python版本:python --version 如果不使用虚拟环境,直接用步骤3和步骤4即可。 1. 创建虚拟环境: pip3 install virtualenv python3 -m virtualenv venv3 2. 进入虚拟环境: source venv3/bin/activate 退出虚拟环境命令是:deactivate 3. 安装jupyter pip install jupyter 4. 启动 jupyter notebook 退出命令是:ctrl + c 5. 会自动打开浏览器 http://localhost:8889/tree 新建文件:

标签:virtualenv,jupyter,python,notebook,Mac,虚拟环境,安装
From: https://www.cnblogs.com/v5captain/p/16609601.html

相关文章

  • python switch 替换if else
    1,python解释器版本3.10以上可以使用如下defdar(darling):matchdarling:case'400':print(400)case'401':print(4......
  • Python小游戏——外星人入侵(保姆级教程)第一章 05
    系列文章目录第一章:武装飞船05:重构:模块game_functions一、重构在大型项目中,经常需要在添加新代码前重构既有代码。重构旨在简化既有代码的结构,使其更容易扩展。在本节......
  • python 时间戳装饰器
    点击查看代码importtimefromfunctoolsimportwrapsdeftimer(func):@wraps(func)definner(*args,**kwargs):start=time.time()re......
  • Mac下载和安装git
    MacOs下载和安装git1、macos安装git方法1、先安装Homebrew(https://git-scm.com/download/mac),再通过Homebrew安装git1./bin/bash-c"$(curl-fsSLhttps://raw.github......
  • 牛客网笔试输入输出处理方法总结(基于Python3.5)
    牛客网判题系统输入处理牛客网上的输入输出借鉴ACM模式给出,对于习惯了leetcode函数定义形式解题的小伙伴们来说确实比较生疏。为了避免在之后的笔试中再次吃亏,在这里对牛......
  • python文件上传
    前端代码:html<inputid="fileUpload"type="file"name="upload"><inputtype="button"@click="submitfile"value="Upload">jssubmitfile(){......
  • python wraps装饰器
    fromfunctoolsimportwrapsdefdecorator(func):"""thisisdecorator__doc__"""@wraps(func)defwrapper(*args,**kwargs):"""thisisw......
  • python输入和类型转换
    输入获取用户使用键盘录入的内容使用的函数是input()变量=input(‘提示的信息’)1.代码从上到下执行,遇到input函数之后 类型转换根据代码的需要,将一种数据类型......
  • Notepad plus 通过NppExec插件编译/运行 golang,php,python等语言
        1. 在Notepadplus的插件-->插件管理中,添加nppExec插件。          2.打开插件-->NppExec,选择Showconsole,和Follow($CURRE......
  • python---re
    python---repython的re模块简单使用re.findall,re.compile,re.match和re.searchre.findall这个是最好用的,查找所有符合条件的,返回list,或Noneimportrestr1='gdf......