Before this procedure, I already have python 3.8.2 installed, not with Choco.
1
2
3
4
5
6
7
8
9
10
| PS C:\Users\vma> py -0p
Installed Pythons found by C:\WINDOWS\py.exe Launcher for Windows
-3.8-64 C:\Users\vma\AppData\Local\Programs\Python\Python38\python.exe *
PS C:\Users\vma> Get-Command python
CommandType Name Version Source
----------- ---- ------- ------
Application python.exe 3.8.215... C:\Users\vma\AppData\Local\Programs\Python\Pyth...
|
Conda
Conda 是 Miniconda 和 Anaconda 的核心组件. Miniconda 是一个精简版的 Anaconda.
I didn’t use choco install miniconda3, as it’s not up to date and has complains.
- Download Miniconda3-py310_23.3.1-0-Windows-x86_64.exe
- from https://docs.conda.io/en/latest/miniconda.html#installing
- and Install for myself
1
2
3
4
| PS C:\Users\vma> py -0p
Installed Pythons found by C:\WINDOWS\py.exe Launcher for Windows
-3.8-64 C:\Users\vma\AppData\Local\Programs\Python\Python38\python.exe *
-3.10-64 C:\Users\vma\miniconda3\python.exe
|
vscode setup
Start vscode, open a command prompt terminal.
1
2
3
4
| code --install-extension ms-python.python
code --install-extension ms-toolsai.jupyter
conda install -n base ipykernel --update-deps --force-reinstall
code random_file_name.py
|
Click on “Select interpreter” link in the lower right corner of vscode. Select the python installed by Conda.
Restart vscode
First jupyter Notebook
Refer to First jupyter Notebook