python3.12以及jupyter notebook的安装
·
python3.12的安装
官网下载(推荐)
进入:
下载:
- Windows installer (64-bit)
文件名类似:
python-3.12.x-amd64.exe
安装时务必勾选
安装界面最下面:
☑ Add Python 3.12 to PATH
一定要勾选。
然后点击:
Install Now
安装完成后验证
重新打开 CMD:
python --version
或者:
py -3.12 --version
应该显示:
Python 3.12.x
如果已经安装了 3.12
可以直接用:
py -3.12 -m pip install notebook
而不要使用:
pip install notebook
jupyter notebook的安装
1. 查看所有 Python 版本
在 CMD 输入:
py -0p
找到类似:
-3.12 C:\...\Python312\python.exe
-3.8 C:\...\Python38\python.exe
2. 用 Python 3.12 安装 Jupyter
执行:
py -3.12 -m pip install --upgrade pip
然后安装:
py -3.12 -m pip install jupyterlab -i https://pypi.tuna.tsinghua.edu.cn/simple
3. 启动 Jupyter
py -3.12 -m jupyter lab更多推荐



所有评论(0)