AI笔记整理——环境准备(Anaconda+python+jupyter notebook)

内容分享3小时前发布
0 0 0

第一简单介绍下Anaconda,python和jupyter notebook的关系:

Anaconda:一个面向数据科学和机器学习的开源 Python/R 发行版,核心作用是简化包管理和环境管理,解决不同项目之间的依赖冲突问题

它可以管理多个python环境,有时候不同的package需要不同的python版本,这个时候可以用anaconda进行环境切换;

AI笔记整理——环境准备(Anaconda+python+jupyter notebook)

jupyter notebook:一款开源的交互式编程与文档工具,核心特点是将可执行代码、运行结果、文本注释、数学公式、图表整合在一个后缀为 .ipynb 的文件中,尤其适合数据科学、机器学习、深度学习等领域的项目开发、实验记录和成果展示

AI笔记整理——环境准备(Anaconda+python+jupyter notebook)

Anaconda安装

  1. 确认系统版本:Windows 10/11 64 位(Anaconda 对 32 位系统支持有限,优先选 64 位)。
  2. 清理旧环境(可选):如果之前装过 Python/Anaconda,提议先卸载,避免冲突;
  3. 下载安装包: 官网地址:https://www.anaconda.com/download(下滑找到 Windows 版本);
  4. 双击下载的.exe文件,执行安装,安装路径优先选非系统盘,减少权限冲突
  5. 为避免 “jupyter 不是内部命令” 的核心,务必按下图 / 文字勾选:
  • ✅ 勾选Add Anaconda3 to my PATH environment variable(将 Anaconda 加入系统环境变量);
  • ✅ 勾选Register Anaconda3 as my default Python(设为默认 Python,新手推荐);

打开开始菜单栏的Anaconda Prompt,执行下面的命令验证已经安装成功:

(base) C:UsersGavin>conda --version
conda 25.9.1

Anaconda常用命令:

环境管理核心:create(创建)→ activate(激活)→ deactivate(退出)→ remove(删除);

(base) C:UsersGavin>conda create -n ai_env python=3.12 -y
3 channel Terms of Service accepted
Retrieving notices: done
Channels:
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
    current version: 25.9.1
    latest version: 25.11.1

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: C:UsersGavin.condaenvsai_env

  added / updated specs:
    - python=3.12


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2025.12.2  |       haa95532_0         125 KB
    expat-2.7.3                |       h885b0b7_4          31 KB
    libexpat-2.7.3             |       h885b0b7_4         119 KB
    pip-25.3                   |     pyhc872135_0         1.1 MB
    python-3.12.12             |       h716150d_1        15.1 MB
    setuptools-80.9.0          |  py312haa95532_0         1.8 MB
    sqlite-3.51.1              |       hda9a48d_0         917 KB
    wheel-0.45.1               |  py312haa95532_0         177 KB
    ------------------------------------------------------------
                                           Total:        19.4 MB

The following NEW packages will be INSTALLED:

  bzip2              pkgs/main/win-64::bzip2-1.0.8-h2bbff1b_6
  ca-certificates    pkgs/main/win-64::ca-certificates-2025.12.2-haa95532_0
done
#
# To activate this environment, use
#
#     $ conda activate ai_env
#
# To deactivate an active environment, use
#
#     $ conda deactivate


(base) C:UsersGavin>conda env list

# conda environments:
#
# *  -> active
# + -> frozen
base                 *   C:ProgramDataminiconda3
ai_env                   C:UsersGavin.condaenvsai_env


(base) C:UsersGavin>conda activate ai_env

包管理原则:优先用conda install装核心库,pip install装 conda 没有的库(如 Gradio);

(ai_env) C:UsersGavin>conda install numpy
3 channel Terms of Service accepted
Channels:
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
    current version: 25.9.1
    latest version: 25.11.1

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: C:UsersGavin.condaenvsai_env

  added / updated specs:
    - numpy


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    blas-1.0                   |              mkl           6 KB
    intel-openmp-2025.0.0      |    haa95532_1164         2.1 MB
    libhwloc-2.12.1            |default_hfa10c62_1000         2.3 MB
    mkl-2025.0.0               |     h5da7b33_930       104.7 MB
    mkl-service-2.5.2          |  py312h0b37514_0          74 KB
    mkl_fft-2.1.1              |  py312h300f80d_0         164 KB
    mkl_random-1.3.0           |  py312ha5e6156_0         238 KB
    numpy-2.3.5                |  py312h050da96_0          10 KB
    numpy-base-2.3.5           |  py312h1e017a8_0         8.7 MB
    tbb-2022.3.0               |       h90c84d6_0         162 KB
    tbb-devel-2022.3.0         |       h90c84d6_0         1.1 MB
    ------------------------------------------------------------
                                           Total:       119.5 MB

The following NEW packages will be INSTALLED:

  blas               pkgs/main/win-64::blas-1.0-mkl
  intel-openmp       pkgs/main/win-64::intel-openmp-2025.0.0-haa95532_1164
  libhwloc           pkgs/main/win-64::libhwloc-2.12.1-default_hfa10c62_1000
  libiconv           pkgs/main/win-64::libiconv-1.16-h2bbff1b_3
  libxml2            pkgs/main/win-64::libxml2-2.13.9-h6201b9f_0
  mkl                pkgs/main/win-64::mkl-2025.0.0-h5da7b33_930
  mkl-service        pkgs/main/win-64::mkl-service-2.5.2-py312h0b37514_0
  mkl_fft            pkgs/main/win-64::mkl_fft-2.1.1-py312h300f80d_0
  mkl_random         pkgs/main/win-64::mkl_random-1.3.0-py312ha5e6156_0
  numpy              pkgs/main/win-64::numpy-2.3.5-py312h050da96_0
  numpy-base         pkgs/main/win-64::numpy-base-2.3.5-py312h1e017a8_0
  tbb                pkgs/main/win-64::tbb-2022.3.0-h90c84d6_0
  tbb-devel          pkgs/main/win-64::tbb-devel-2022.3.0-h90c84d6_0


Proceed ([y]/n)? y


Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

排错高频命令:conda env list(查环境)、conda list(查包)、conda clean -a(清缓存)

(base) C:UsersGavin>conda env list

# conda environments:
#
# *  -> active
# + -> frozen
base                 *   C:ProgramDataminiconda3
ai_env                   C:UsersGavin.condaenvsai_env
(base) C:UsersGavin>conda activate ai_env
(ai_env) C:UsersGavin>conda list
# packages in environment at C:UsersGavin.condaenvsai_env:
#
# Name                       Version          Build            Channel
anyio                        4.10.0           py312haa95532_0
argon2-cffi                  25.1.0           py312haa95532_0
argon2-cffi-bindings         25.1.0           py312h02ab6af_0
asttokens                    3.0.0            py312haa95532_0
async-lru                    2.0.5            py312haa95532_0
attrs                        25.4.0           py312haa95532_2
babel                        2.17.0           py312haa95532_0
beautifulsoup4               4.14.2           py312haa95532_0
bleach                       6.3.0            py312haa95532_0
brotlicffi                   1.2.0.0          py312h885b0b7_0
bzip2                        1.0.8            h2bbff1b_6
ca-certificates              2025.12.2        haa95532_0
certifi                      2026.01.04       py312haa95532_0
cffi                         2.0.0            py312h02ab6af_1
charset-normalizer           3.4.4            py312haa95532_0
colorama                     0.4.6            py312haa95532_0
comm                         0.2.3            py312haa95532_0
debugpy                      1.8.16           py312h885b0b7_1
decorator                    5.2.1            py312haa95532_0
defusedxml                   0.7.1            pyhd3eb1b0_0
executing                    2.2.1            py312haa95532_0
expat                        2.7.3            h885b0b7_4
h11                          0.16.0           py312haa95532_1
html5lib                     1.1              pyhd3eb1b0_0
httpcore                     1.0.9            py312haa95532_0
httpx                        0.28.1           py312haa95532_1
idna                         3.11             py312haa95532_0
ipykernel                    6.31.0           py312h4442805_0
ipython                      9.7.0            py312haa95532_0
ipython_pygments_lexers      1.1.1            py312haa95532_0
ipywidgets                   8.1.7            py312haa95532_0
jedi                         0.19.2           py312haa95532_0
jinja2                       3.1.6            py312haa95532_0
json5                        0.12.1           py312haa95532_0
jsonschema                   4.25.0           py312haa95532_1
jsonschema-specifications    2025.9.1         py312haa95532_0
jupyter                      1.1.1            py312haa95532_0
jupyter-lsp                  2.2.5            py312haa95532_0
jupyter_client               8.6.3            py312haa95532_1
jupyter_console              6.6.3            py312haa95532_1
jupyter_core                 5.9.1            py312haa95532_0
jupyter_events               0.12.0           py312haa95532_1
jupyter_server               2.17.0           py312haa95532_0
jupyter_server_terminals     0.5.3            py312haa95532_0
jupyterlab                   4.5.0            py312haa95532_0
jupyterlab_pygments          0.3.0            py312haa95532_0
jupyterlab_server            2.28.0           py312haa95532_0
jupyterlab_widgets           3.0.15           py312haa95532_0
libexpat                     2.7.3            h885b0b7_4
libffi                       3.4.4            hd77b12b_1
libsodium                    1.0.20           h83e8143_0
libzlib                      1.3.1            h02ab6af_0
markupsafe                   3.0.2            py312h827c3e9_0
matplotlib-inline            0.2.1            py312haa95532_0
mistune                      3.1.2            py312haa95532_0
nbclient                     0.10.2           py312haa95532_0
nbconvert                    7.16.6           py312haa95532_0
nbconvert-core               7.16.6           py312haa95532_0
nbconvert-pandoc             7.16.6           py312haa95532_0
nbformat                     5.10.4           py312haa95532_0
nest-asyncio                 1.6.0            py312haa95532_0
notebook                     7.5.0            py312haa95532_0
notebook-shim                0.2.4            py312haa95532_0
openssl                      3.0.18           h543e019_0
packaging                    25.0             py312haa95532_1
pandoc                       3.8              haa95532_0
pandocfilters                1.5.1            py312haa95532_0
parso                        0.8.5            py312haa95532_0
pip                          25.3             pyhc872135_0
platformdirs                 4.5.0            py312haa95532_0
prometheus_client            0.21.1           py312haa95532_0
prompt-toolkit               3.0.52           py312haa95532_1
prompt_toolkit               3.0.52           hd3eb1b0_1
psutil                       7.0.0            py312h02ab6af_1
pure_eval                    0.2.3            py312haa95532_0
pycparser                    2.23             py312haa95532_0
pygments                     2.19.2           py312haa95532_0
pysocks                      1.7.1            py312haa95532_1
python                       3.12.12          h716150d_1
python-dateutil              2.9.0post0       py312haa95532_2
python-fastjsonschema        2.21.2           py312haa95532_0
python-json-logger           4.0.0            py312haa95532_0
pywin32                      311              py312h885b0b7_0
pywinpty                     2.0.15           py312h72d21ff_0
pyyaml                       6.0.3            py312hb9a58be_0
pyzmq                        27.1.0           py312h7149c55_1
qtconsole                    5.7.0            py312haa95532_0
qtpy                         2.4.3            py312haa95532_0
referencing                  0.37.0           py312haa95532_0
requests                     2.32.5           py312haa95532_1
rfc3339-validator            0.1.4            py312haa95532_0
rfc3986-validator            0.1.1            py312haa95532_0
rpds-py                      0.28.0           py312h114bc41_0
send2trash                   1.8.2            py312haa95532_1
setuptools                   80.9.0           py312haa95532_0
six                          1.17.0           py312haa95532_0
sniffio                      1.3.1            py312haa95532_0
soupsieve                    2.5              py312haa95532_0
sqlite                       3.51.1           hda9a48d_0
stack_data                   0.6.3            py312haa95532_0
terminado                    0.18.1           py312haa95532_0
tinycss2                     1.4.0            py312haa95532_0
tk                           8.6.15           hf199647_0
tornado                      6.5.4            py312h02ab6af_0
traitlets                    5.14.3           py312haa95532_0
typing-extensions            4.15.0           py312haa95532_0
typing_extensions            4.15.0           py312haa95532_0
tzdata                       2025b            h04d1e81_0
ucrt                         10.0.22621.0     haa95532_0
urllib3                      2.6.1            py312haa95532_0
vc                           14.3             h2df5915_10
vc14_runtime                 14.44.35208      h4927774_10
vs2015_runtime               14.44.35208      ha6b5a95_10
wcwidth                      0.2.13           py312haa95532_0
webencodings                 0.5.1            py312haa95532_2
websocket-client             1.8.0            py312haa95532_0
wheel                        0.45.1           py312haa95532_0
widgetsnbextension           4.0.14           py312haa95532_0
win_inet_pton                1.1.0            py312haa95532_1
winpty                       0.4.3            4
xz                           5.6.4            h4754444_1
yaml                         0.2.5            he774522_0
zeromq                       4.3.5            h6c54ac7_1
zlib                         1.3.1            h02ab6af_0

安装jupyter notebook

一开始执行报错:

(base) C:UsersGavin>conda install jupyter -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

To accept these channels' Terms of Service, run the following commands:
    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

For information on safely removing channels from your conda configuration,
please see the official documentation:

    https://www.anaconda.com/docs/tools/working-with-conda/channels

缘由是还没同意 Anaconda 频道的服务条款,得先执行条款接受命令才能继续安装。

(base) C:UsersGavin>conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
accepted Terms of Service for https://repo.anaconda.com/pkgs/main

(base) C:UsersGavin>conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
accepted Terms of Service for https://repo.anaconda.com/pkgs/r

(base) C:UsersGavin>conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/msys2
accepted Terms of Service for https://repo.anaconda.com/pkgs/msys2

执行完这 3 条命令后,再重新运行安装命令:

(ai_env) C:UsersGavin>conda install jupyter -y
3 channel Terms of Service accepted
Channels:
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
    current version: 25.9.1
    latest version: 25.11.1

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: C:UsersGavin.condaenvsai_env

  added / updated specs:
    - jupyter


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    anyio-4.10.0               |  py312haa95532_0         287 KB
    argon2-cffi-25.1.0         |  py312haa95532_0          34 KB
    argon2-cffi-bindings-25.1.0|  py312h02ab6af_0          41 KB
    asttokens-3.0.0            |  py312haa95532_0          48 KB
    async-lru-2.0.5            |  py312haa95532_0          21 KB
    attrs-25.4.0               |  py312haa95532_2         170 KB
    babel-2.17.0               |  py312haa95532_0        13.3 MB
    beautifulsoup4-4.14.2      |  py312haa95532_0         243 KB
    bleach-6.3.0               |  py312haa95532_0          96 KB
    brotlicffi-1.2.0.0         |  py312h885b0b7_0         348 KB
    certifi-2026.01.04         |  py312haa95532_0         148 KB
    cffi-2.0.0                 |  py312h02ab6af_1         291 KB
    charset-normalizer-3.4.4   |  py312haa95532_0         121 KB
    colorama-0.4.6             |  py312haa95532_0          53 KB
    comm-0.2.3                 |  py312haa95532_0          17 KB
    debugpy-1.8.16             |  py312h885b0b7_1         3.5 MB
    decorator-5.2.1            |  py312haa95532_0          42 KB
    defusedxml-0.7.1           |     pyhd3eb1b0_0          23 KB
    executing-2.2.1            |  py312haa95532_0         347 KB
    h11-0.16.0                 |  py312haa95532_1          62 KB
    html5lib-1.1               |     pyhd3eb1b0_0          91 KB
    httpcore-1.0.9             |  py312haa95532_0         126 KB
    httpx-0.28.1               |  py312haa95532_1         234 KB
    idna-3.11                  |  py312haa95532_0         199 KB
    ipykernel-6.31.0           |  py312h4442805_0         245 KB
    ipython-9.7.0              |  py312haa95532_0         1.2 MB
    ipython_pygments_lexers-1.1.1|  py312haa95532_0          19 KB
    ipywidgets-8.1.7           |  py312haa95532_0         238 KB
    jedi-0.19.2                |  py312haa95532_0         1.2 MB
    jinja2-3.1.6               |  py312haa95532_0         354 KB
    json5-0.12.1               |  py312haa95532_0          93 KB
    jsonschema-4.25.0          |  py312haa95532_1         215 KB
    jsonschema-specifications-2025.9.1|  py312haa95532_0          17 KB
    jupyter-1.1.1              |  py312haa95532_0           9 KB
    jupyter-lsp-2.2.5          |  py312haa95532_0         114 KB
    jupyter_client-8.6.3       |  py312haa95532_1         249 KB
    jupyter_console-6.6.3      |  py312haa95532_1          69 KB
    jupyter_core-5.9.1         |  py312haa95532_0         118 KB
    jupyter_events-0.12.0      |  py312haa95532_1          67 KB
    jupyter_server-2.17.0      |  py312haa95532_0         602 KB
    jupyter_server_terminals-0.5.3|  py312haa95532_0          29 KB
    jupyterlab-4.5.0           |  py312haa95532_0         8.8 MB
    jupyterlab_pygments-0.3.0  |  py312haa95532_0          20 KB
    jupyterlab_server-2.28.0   |  py312haa95532_0         118 KB
    jupyterlab_widgets-3.0.15  |  py312haa95532_0         199 KB
    libsodium-1.0.20           |       h83e8143_0         562 KB
    markupsafe-3.0.2           |  py312h827c3e9_0          38 KB
    matplotlib-inline-0.2.1    |  py312haa95532_0          19 KB
    mistune-3.1.2              |  py312haa95532_0         147 KB
    nbclient-0.10.2            |  py312haa95532_0          82 KB
    nbconvert-7.16.6           |  py312haa95532_0           9 KB
    nbconvert-core-7.16.6      |  py312haa95532_0         541 KB
    nbconvert-pandoc-7.16.6    |  py312haa95532_0           9 KB
    nbformat-5.10.4            |  py312haa95532_0         185 KB
    nest-asyncio-1.6.0         |  py312haa95532_0          17 KB
    notebook-7.5.0             |  py312haa95532_0        10.1 MB
    notebook-shim-0.2.4        |  py312haa95532_0          26 KB
    packaging-25.0             |  py312haa95532_1         188 KB
    pandoc-3.8                 |       haa95532_0        24.9 MB
    pandocfilters-1.5.1        |  py312haa95532_0          17 KB
    parso-0.8.5                |  py312haa95532_0         228 KB
    platformdirs-4.5.0         |  py312haa95532_0          41 KB
    prometheus_client-0.21.1   |  py312haa95532_0         149 KB
    prompt-toolkit-3.0.52      |  py312haa95532_1         700 KB
    prompt_toolkit-3.0.52      |       hd3eb1b0_1           5 KB
    psutil-7.0.0               |  py312h02ab6af_1         555 KB
    pure_eval-0.2.3            |  py312haa95532_0          34 KB
    pycparser-2.23             |  py312haa95532_0         258 KB
    pygments-2.19.2            |  py312haa95532_0         4.8 MB
    pysocks-1.7.1              |  py312haa95532_1          35 KB
    python-dateutil-2.9.0post0 |  py312haa95532_2         319 KB
    python-fastjsonschema-2.21.2|  py312haa95532_0         246 KB
    python-json-logger-4.0.0   |  py312haa95532_0          34 KB
    pywin32-311                |  py312h885b0b7_0        11.7 MB
    pywinpty-2.0.15            |  py312h72d21ff_0         234 KB
    pyyaml-6.0.3               |  py312hb9a58be_0         226 KB
    pyzmq-27.1.0               |  py312h7149c55_1         364 KB
    qtconsole-5.7.0            |  py312haa95532_0         278 KB
    qtpy-2.4.3                 |  py312haa95532_0         153 KB
    referencing-0.37.0         |  py312haa95532_0          79 KB
    requests-2.32.5            |  py312haa95532_1         164 KB
    rfc3339-validator-0.1.4    |  py312haa95532_0          10 KB
    rfc3986-validator-0.1.1    |  py312haa95532_0          10 KB
    rpds-py-0.28.0             |  py312h114bc41_0         215 KB
    send2trash-1.8.2           |  py312haa95532_1          97 KB
    six-1.17.0                 |  py312haa95532_0          38 KB
    sniffio-1.3.1              |  py312haa95532_0          17 KB
    soupsieve-2.5              |  py312haa95532_0          86 KB
    stack_data-0.6.3           |  py312haa95532_0          65 KB
    terminado-0.18.1           |  py312haa95532_0          32 KB
    tinycss2-1.4.0             |  py312haa95532_0         111 KB
    tornado-6.5.4              |  py312h02ab6af_0         843 KB
    traitlets-5.14.3           |  py312haa95532_0         221 KB
    typing-extensions-4.15.0   |  py312haa95532_0          12 KB
    typing_extensions-4.15.0   |  py312haa95532_0          98 KB
    urllib3-2.6.1              |  py312haa95532_0         343 KB
    wcwidth-0.2.13             |  py312haa95532_0          76 KB
    webencodings-0.5.1         |  py312haa95532_2          25 KB
    websocket-client-1.8.0     |  py312haa95532_0         143 KB
    widgetsnbextension-4.0.14  |  py312haa95532_0         865 KB
    win_inet_pton-1.1.0        |  py312haa95532_1          10 KB
    winpty-0.4.3               |                4         678 KB
    yaml-0.2.5                 |       he774522_0          62 KB
    zeromq-4.3.5               |       h6c54ac7_1         4.0 MB
    ------------------------------------------------------------
                                           Total:        98.9 MB

The following NEW packages will be INSTALLED:

  anyio              pkgs/main/win-64::anyio-4.10.0-py312haa95532_0
  argon2-cffi        pkgs/main/win-64::argon2-cffi-25.1.0-py312haa95532_0
  argon2-cffi-bindi~ pkgs/main/win-64::argon2-cffi-bindings-25.1.0-py312h02ab6af_0
  asttokens          pkgs/main/win-64::asttokens-3.0.0-py312haa95532_0
  async-lru          pkgs/main/win-64::async-lru-2.0.5-py312haa95532_0
  attrs              pkgs/main/win-64::attrs-25.4.0-py312haa95532_2
  babel              pkgs/main/win-64::babel-2.17.0-py312haa95532_0
  beautifulsoup4     pkgs/main/win-64::beautifulsoup4-4.14.2-py312haa95532_0
  bleach             pkgs/main/win-64::bleach-6.3.0-py312haa95532_0
  brotlicffi         pkgs/main/win-64::brotlicffi-1.2.0.0-py312h885b0b7_0
  certifi            pkgs/main/win-64::certifi-2026.01.04-py312haa95532_0
  cffi               pkgs/main/win-64::cffi-2.0.0-py312h02ab6af_1
  charset-normalizer pkgs/main/win-64::charset-normalizer-3.4.4-py312haa95532_0
  colorama           pkgs/main/win-64::colorama-0.4.6-py312haa95532_0
  comm               pkgs/main/win-64::comm-0.2.3-py312haa95532_0
  debugpy            pkgs/main/win-64::debugpy-1.8.16-py312h885b0b7_1
  decorator          pkgs/main/win-64::decorator-5.2.1-py312haa95532_0
  defusedxml         pkgs/main/noarch::defusedxml-0.7.1-pyhd3eb1b0_0
  executing          pkgs/main/win-64::executing-2.2.1-py312haa95532_0
  h11                pkgs/main/win-64::h11-0.16.0-py312haa95532_1
  html5lib           pkgs/main/noarch::html5lib-1.1-pyhd3eb1b0_0
  httpcore           pkgs/main/win-64::httpcore-1.0.9-py312haa95532_0
  httpx              pkgs/main/win-64::httpx-0.28.1-py312haa95532_1
  idna               pkgs/main/win-64::idna-3.11-py312haa95532_0
  ipykernel          pkgs/main/win-64::ipykernel-6.31.0-py312h4442805_0
  ipython            pkgs/main/win-64::ipython-9.7.0-py312haa95532_0
  ipython_pygments_~ pkgs/main/win-64::ipython_pygments_lexers-1.1.1-py312haa95532_0
  ipywidgets         pkgs/main/win-64::ipywidgets-8.1.7-py312haa95532_0
  jedi               pkgs/main/win-64::jedi-0.19.2-py312haa95532_0
  jinja2             pkgs/main/win-64::jinja2-3.1.6-py312haa95532_0
  json5              pkgs/main/win-64::json5-0.12.1-py312haa95532_0
  jsonschema         pkgs/main/win-64::jsonschema-4.25.0-py312haa95532_1
  jsonschema-specif~ pkgs/main/win-64::jsonschema-specifications-2025.9.1-py312haa95532_0
  jupyter            pkgs/main/win-64::jupyter-1.1.1-py312haa95532_0
  jupyter-lsp        pkgs/main/win-64::jupyter-lsp-2.2.5-py312haa95532_0
  jupyter_client     pkgs/main/win-64::jupyter_client-8.6.3-py312haa95532_1
  jupyter_console    pkgs/main/win-64::jupyter_console-6.6.3-py312haa95532_1
  jupyter_core       pkgs/main/win-64::jupyter_core-5.9.1-py312haa95532_0
  jupyter_events     pkgs/main/win-64::jupyter_events-0.12.0-py312haa95532_1
  jupyter_server     pkgs/main/win-64::jupyter_server-2.17.0-py312haa95532_0
  jupyter_server_te~ pkgs/main/win-64::jupyter_server_terminals-0.5.3-py312haa95532_0
  jupyterlab         pkgs/main/win-64::jupyterlab-4.5.0-py312haa95532_0
  jupyterlab_pygmen~ pkgs/main/win-64::jupyterlab_pygments-0.3.0-py312haa95532_0
  jupyterlab_server  pkgs/main/win-64::jupyterlab_server-2.28.0-py312haa95532_0
  jupyterlab_widgets pkgs/main/win-64::jupyterlab_widgets-3.0.15-py312haa95532_0
  libsodium          pkgs/main/win-64::libsodium-1.0.20-h83e8143_0
  markupsafe         pkgs/main/win-64::markupsafe-3.0.2-py312h827c3e9_0
  matplotlib-inline  pkgs/main/win-64::matplotlib-inline-0.2.1-py312haa95532_0
  mistune            pkgs/main/win-64::mistune-3.1.2-py312haa95532_0
  nbclient           pkgs/main/win-64::nbclient-0.10.2-py312haa95532_0
  nbconvert          pkgs/main/win-64::nbconvert-7.16.6-py312haa95532_0
  nbconvert-core     pkgs/main/win-64::nbconvert-core-7.16.6-py312haa95532_0
  nbconvert-pandoc   pkgs/main/win-64::nbconvert-pandoc-7.16.6-py312haa95532_0
  nbformat           pkgs/main/win-64::nbformat-5.10.4-py312haa95532_0
  nest-asyncio       pkgs/main/win-64::nest-asyncio-1.6.0-py312haa95532_0
  notebook           pkgs/main/win-64::notebook-7.5.0-py312haa95532_0
  notebook-shim      pkgs/main/win-64::notebook-shim-0.2.4-py312haa95532_0
  packaging          pkgs/main/win-64::packaging-25.0-py312haa95532_1
  pandoc             pkgs/main/win-64::pandoc-3.8-haa95532_0
  pandocfilters      pkgs/main/win-64::pandocfilters-1.5.1-py312haa95532_0
  parso              pkgs/main/win-64::parso-0.8.5-py312haa95532_0
  platformdirs       pkgs/main/win-64::platformdirs-4.5.0-py312haa95532_0
  prometheus_client  pkgs/main/win-64::prometheus_client-0.21.1-py312haa95532_0
  prompt-toolkit     pkgs/main/win-64::prompt-toolkit-3.0.52-py312haa95532_1
  prompt_toolkit     pkgs/main/noarch::prompt_toolkit-3.0.52-hd3eb1b0_1
  psutil             pkgs/main/win-64::psutil-7.0.0-py312h02ab6af_1
  pure_eval          pkgs/main/win-64::pure_eval-0.2.3-py312haa95532_0
  pycparser          pkgs/main/win-64::pycparser-2.23-py312haa95532_0
  pygments           pkgs/main/win-64::pygments-2.19.2-py312haa95532_0
  pysocks            pkgs/main/win-64::pysocks-1.7.1-py312haa95532_1
  python-dateutil    pkgs/main/win-64::python-dateutil-2.9.0post0-py312haa95532_2
  python-fastjsonsc~ pkgs/main/win-64::python-fastjsonschema-2.21.2-py312haa95532_0
  python-json-logger pkgs/main/win-64::python-json-logger-4.0.0-py312haa95532_0
  pywin32            pkgs/main/win-64::pywin32-311-py312h885b0b7_0
  pywinpty           pkgs/main/win-64::pywinpty-2.0.15-py312h72d21ff_0
  pyyaml             pkgs/main/win-64::pyyaml-6.0.3-py312hb9a58be_0
  pyzmq              pkgs/main/win-64::pyzmq-27.1.0-py312h7149c55_1
  qtconsole          pkgs/main/win-64::qtconsole-5.7.0-py312haa95532_0
  qtpy               pkgs/main/win-64::qtpy-2.4.3-py312haa95532_0
  referencing        pkgs/main/win-64::referencing-0.37.0-py312haa95532_0
  requests           pkgs/main/win-64::requests-2.32.5-py312haa95532_1
  rfc3339-validator  pkgs/main/win-64::rfc3339-validator-0.1.4-py312haa95532_0
  rfc3986-validator  pkgs/main/win-64::rfc3986-validator-0.1.1-py312haa95532_0
  rpds-py            pkgs/main/win-64::rpds-py-0.28.0-py312h114bc41_0
  send2trash         pkgs/main/win-64::send2trash-1.8.2-py312haa95532_1
  six                pkgs/main/win-64::six-1.17.0-py312haa95532_0
  sniffio            pkgs/main/win-64::sniffio-1.3.1-py312haa95532_0
  soupsieve          pkgs/main/win-64::soupsieve-2.5-py312haa95532_0
  stack_data         pkgs/main/win-64::stack_data-0.6.3-py312haa95532_0
  terminado          pkgs/main/win-64::terminado-0.18.1-py312haa95532_0
  tinycss2           pkgs/main/win-64::tinycss2-1.4.0-py312haa95532_0
  tornado            pkgs/main/win-64::tornado-6.5.4-py312h02ab6af_0
  traitlets          pkgs/main/win-64::traitlets-5.14.3-py312haa95532_0
  typing-extensions  pkgs/main/win-64::typing-extensions-4.15.0-py312haa95532_0
  typing_extensions  pkgs/main/win-64::typing_extensions-4.15.0-py312haa95532_0
  urllib3            pkgs/main/win-64::urllib3-2.6.1-py312haa95532_0
  wcwidth            pkgs/main/win-64::wcwidth-0.2.13-py312haa95532_0
  webencodings       pkgs/main/win-64::webencodings-0.5.1-py312haa95532_2
  websocket-client   pkgs/main/win-64::websocket-client-1.8.0-py312haa95532_0
  widgetsnbextension pkgs/main/win-64::widgetsnbextension-4.0.14-py312haa95532_0
  win_inet_pton      pkgs/main/win-64::win_inet_pton-1.1.0-py312haa95532_1
  winpty             pkgs/main/win-64::winpty-0.4.3-4
  yaml               pkgs/main/win-64::yaml-0.2.5-he774522_0
  zeromq             pkgs/main/win-64::zeromq-4.3.5-h6c54ac7_1



done

然后执行(ai_env) C:UsersGavin>jupyter notebook命令后会启动图形界面:

AI笔记整理——环境准备(Anaconda+python+jupyter notebook)

然后就可以使用jupyter notebook编写调试python程序了

© 版权声明

相关文章

暂无评论

none
暂无评论...