安装Miniconda+Jupyter notebook

如果只是测试用,直接用下面的命令:

pip install jupyter notebook

如果是长期用,可以:

conda install jupyter notebook -y

可能会有报错:

复制代码
(base) C:\Users\58615>conda install jupyter notebook -y

CondaToSNonInteractiveError: Terms of Service have not been accepted for the following channels. Please accept or remove them before proceeding:
    - https://repo.anaconda.com/pkgs/main
    - https://repo.anaconda.com/pkgs/r
    - https://repo.anaconda.com/pkgs/msys2

从 2024 年 4 月开始,Anaconda 为了合规要求,强制所有使用其默认官方源的用户必须主动同意服务条款。这是"一次性"操作,同意后,你的电脑就会记住这个授权,以后不会再弹出这个提示。

conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main

conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r

conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/msys2

使用国内镜像源(推荐):清华大学、中科大等国内镜像站提供了 Anaconda 的完整镜像,可以绕过这个条款限制。配置方法是在终端中执行:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/ conda config --set show_channel_urls yes

相关推荐
晗夜未央4 分钟前
跨仓库 Skill 换台电脑就失效?用 Git remote 校验项目
人工智能·git·python
Zack_Liu9 分钟前
code样例
pytorch·python·深度学习
wusam12 分钟前
基于HCL的python脚本编程(4)
网络·python·智能路由器
treasure14015 分钟前
Django复习笔记(2026年10月)
后端·python·django·api·web·drf
xiaoqiangclub33 分钟前
Python 的实验性 JIT 要生变?那个开关现在还该不该开
python·性能优化·jit·开发环境·cpython
2601_9679873736 分钟前
终端 IDE 卷到了新高度:个人免费,符号索引快 65%,内存省 95%
ide·python·免费·性能·rune
全栈陈序员40 分钟前
【Python】基础语法入门(三十一)—— API 开发:用 FastAPI 构建 RESTful 接口
python·restful·fastapi
懂点Tech9 小时前
ctfshow misc28:GIF 高度修改解题与脚本实现
开发语言·windows·python
comedate9 小时前
SMLib 的 Examples 导读:PyAPI / SM_API / SMLib 三组示例怎么读
python·cad·smlib·examples·sm_api
云和数据.ChenGuang9 小时前
Python 重写(Override)深度解析:从 MRO 到 super() 的完整机制
java·开发语言·人工智能·python·langchain·1024程序员节