1. 安装 Python 版本¶
① 首先打开 Anaconda 的 Prompt 终端,输入 jupyter kernelspec list,查看已经安装的 python 版本。如下图所示,只有 Anaconda 自带的 python3。

② 输入 conda create --name py3.6.3 python=3.6.3 命令,输入 [y]/n 时输入 y,创建 py3.6.3 虚拟环境,它会安装 python3.6.3 到 anaconda3 的 env 目录下。



③ 首先确保目前盘和要进入的盘一样,输入 cd D:\11_Anaconda\envs\py3.6.3\Scripts 命令,进入 py3.6.3 目录下的 Scripts 文件夹下。

④ 输入 conda activate py3.6.3 激活 py3.6.3环境后,再输入 pip install ipykernel 命令,会在 script 目录下会生成一系列工具,如下图所示。( 注意:当 pip install ipykernel 时,不能挂 VNP。)


⑤ 将 Anaconda 文件夹下的 share/jupyter/kernels 文件夹中已经存在的项目复制一份,重命名为 python3.6.3。


⑥ 打开文件夹中 json 文件,将 Python 3 改为 Python 3.6.3,如下图所示。


⑦ 再次打开 Anaconda 终端,输入 jupyter kernelspec list,可以查看到已成功安上 Python3.6.3 的虚拟环境。

⑧ 再次打开 Jupyter notebook,New 里面有 Python3.6.3 选项。

⑨ 在 Jupyter notebook 中,用 python 代码打印 python 版本。
In [1]:
import sys
print(sys.version)
3.6.3 |Anaconda, Inc.| (default, Nov 8 2017, 15:10:56) [MSC v.1900 64 bit (AMD64)]
2. 各库版本¶
In [2]:
pip list
Package Version ------------------------- ------------ absl-py 0.15.0 altgraph 0.17.3 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 astor 0.8.1 astunparse 1.6.3 async-generator 1.10 attrs 22.2.0 Babel 2.10.3 backcall 0.2.0 baidu-aip 4.16.7 bleach 1.5.0 cached-property 1.5.2 cachetools 4.2.4 certifi 2021.5.30 cffi 1.15.1 chardet 5.0.0 charset-normalizer 2.0.12 clang 5.0 colorama 0.4.5 cycler 0.11.0 dataclasses 0.8 decorator 5.1.1 defusedxml 0.7.1 docopt 0.6.2 emoji 1.6.3 entrypoints 0.4 Faker 2.0.0 flatbuffers 1.12 gast 0.4.0 google-auth 1.35.0 google-auth-oauthlib 0.4.6 google-pasta 0.2.0 graphviz 0.19.1 grpcio 1.47.0 h5py 2.10.0 html5lib 0.9999999 idna 3.3 importlib-metadata 4.8.3 importlib-resources 5.4.0 ipykernel 5.5.6 ipython 7.16.3 ipython-genutils 0.2.0 ipywidgets 7.7.5 jedi 0.17.2 Jinja2 3.0.3 joblib 1.1.0 jsonschema 3.2.0 jupyter 1.0.0 jupyter-client 7.1.2 jupyter-console 6.4.3 jupyter-core 4.9.2 jupyterlab-pygments 0.1.2 jupyterlab-widgets 1.1.4 Keras 2.1.5 Keras-Preprocessing 1.1.2 kiwisolver 1.3.1 Markdown 3.3.7 MarkupSafe 2.0.1 matplotlib 3.3.4 mistune 0.8.4 more-itertools 8.14.0 mpmath 1.2.1 msgpack 1.0.4 mtcnn 0.1.1 music21 4.1.0 nbclient 0.5.9 nbconvert 6.0.7 nbformat 5.1.3 nest-asyncio 1.5.5 notebook 6.4.10 numpy 1.15.0 oauthlib 3.2.0 opencv-python 4.6.0.66 opt-einsum 3.3.0 packaging 21.3 pandas 0.20.0 pandocfilters 1.5.0 parso 0.7.1 pefile 2023.2.7 pickleshare 0.7.5 Pillow 8.4.0 pip 21.2.2 pipreqs 0.4.11 prometheus-client 0.16.0 prompt-toolkit 3.0.30 protobuf 3.19.4 pupil-apriltags 1.0.4.post10 pupil-pthreads-win 2 pyasn1 0.4.8 pyasn1-modules 0.2.8 pycparser 2.21 pydot 1.4.2 pydot-ng 2.0.0 pydub 0.25.1 Pygments 2.13.0 pyinstaller 4.10 pyinstaller-hooks-contrib 2022.0 pynverse 0.1.4.4 pyparsing 3.0.7 PyQt5 5.15.6 PyQt5-Qt5 5.15.2 PyQt5-sip 12.9.1 pyrsistent 0.18.0 python-dateutil 2.8.2 pytz 2022.4 pywin32 304 pywin32-ctypes 0.2.0 pywinpty 1.1.6 PyYAML 6.0 pyzbar 0.1.9 pyzmq 23.2.1 qtconsole 5.2.2 QtPy 2.0.1 requests 2.27.1 requests-oauthlib 1.3.1 rsa 4.9 schedule 1.1.0 scikit-learn 0.24.2 scipy 1.2.1 Send2Trash 1.8.2 setuptools 58.0.4 six 1.15.0 sklearn 0.0 sympy 1.9 tabulate 0.8.10 tensorboard 1.8.0 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.1 tensorflow 1.8.0 tensorflow-estimator 2.6.0 tensorflow-gpu 1.8.0 termcolor 1.1.0 terminado 0.12.1 testpath 0.6.0 text-unidecode 1.2 tflearn 0.5.0 threadpoolctl 3.1.0 torch 1.7.1+cu110 torchaudio 0.7.2 torchvision 0.8.2+cu110 tornado 6.1 tqdm 4.64.1 traitlets 4.3.3 typing-extensions 3.7.4.3 urllib3 1.26.11 wcwidth 0.2.5 webcolors 1.11.1 Werkzeug 2.0.3 wheel 0.37.1 widgetsnbextension 3.6.4 wincertstore 0.2 wrapt 1.12.1 xlrd 1.2.0 xlwt 1.3.0 yarg 0.1.9 zipp 3.6.0 Note: you may need to restart the kernel to use updated packages.
WARNING: Ignoring invalid distribution -cipy (d:\11_anaconda\envs\py3.6.3\lib\site-packages) WARNING: Ignoring invalid distribution -cipy (d:\11_anaconda\envs\py3.6.3\lib\site-packages) WARNING: Ignoring invalid distribution -cipy (d:\11_anaconda\envs\py3.6.3\lib\site-packages) WARNING: Ignoring invalid distribution -cipy (d:\11_anaconda\envs\py3.6.3\lib\site-packages)