1. Install Python
- Download a Python installer from python.org. Choose Python 3.7, 3.8, 3.9 or 3.10 and make sure to pick a 64 bit version. For example, this 3.8 installer: https://www.python.org/ftp/python/3.8.8/python-3.8.8-amd64.exe
- Double click on the installer to run it, and follow the steps in the installer. Check the box to add Python to your PATH, and to install
py
. At the end of the installer, there is an option to disable the PATH length limit. It is recommended to click this.
2. Install Git
- Download GIT from this link
- Double click on the installer to run it, and follow the steps in the installer.
3. Install C++ Redistributable (For Python 3.8)
This step can be skipped for Python 3.7
- Download Microsoft Visual C++ Redistributable.
- Double click on the installer to run it, and follow the steps in the installer.
4. Install the Notebooks
After installing Python 3 and Git, run each step below using Command Prompt (cmd.exe), not PowerShell. Note: If OpenVINO is installed globally, please do not run any of these commands in a terminal where setupvars.bat is sourced.
5. Create a Virtual Environment
Note: If you already installed openvino-dev and activated the openvino_env environment, you can skip to Step 6. If you use Anaconda, please see the Conda guide.
conda create -n openvino_env python=3.9
运行结果
(base) C:\Users\Admin>conda create -n openvino_env python=3.9
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 23.3.1
latest version: 23.5.0
Please update conda by running
$ conda update -n base -c defaults conda
Or to minimize the number of packages updated during conda update use
conda install conda=23.5.0
## Package Plan ##
environment location: C:\ProgramData\anaconda3\envs\openvino_env
added / updated specs:
- python=3.9
The following packages will be downloaded:
package | build
---------------------------|-----------------
ca-certificates-2023.01.10 | haa95532_0 121 KB
openssl-1.1.1t | h2bbff1b_0 5.5 MB
pip-23.0.1 | py39haa95532_0 2.7 MB
python-3.9.16 | h6244533_2 19.5 MB
setuptools-67.8.0 | py39haa95532_0 1.0 MB
sqlite-3.41.2 | h2bbff1b_0 894 KB
tzdata-2023c | h04d1e81_0 116 KB
vc-14.2 | h21ff451_1 8 KB
vs2015_runtime-14.27.29016 | h5e58377_2 1007 KB
wheel-0.38.4 | py39haa95532_0 83 KB
------------------------------------------------------------
Total: 30.9 MB
The following NEW packages will be INSTALLED:
ca-certificates pkgs/main/win-64::ca-certificates-2023.01.10-haa95532_0
openssl pkgs/main/win-64::openssl-1.1.1t-h2bbff1b_0
pip pkgs/main/win-64::pip-23.0.1-py39haa95532_0
python pkgs/main/win-64::python-3.9.16-h6244533_2
setuptools pkgs/main/win-64::setuptools-67.8.0-py39haa95532_0
sqlite pkgs/main/win-64::sqlite-3.41.2-h2bbff1b_0
tzdata pkgs/main/noarch::tzdata-2023c-h04d1e81_0
vc pkgs/main/win-64::vc-14.2-h21ff451_1
vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2
wheel pkgs/main/win-64::wheel-0.38.4-py39haa95532_0
Proceed ([y]/n)?
Downloading and Extracting Packages
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate openvino_env
#
# To deactivate an active environment, use
#
# $ conda deactivate
6. Activate the Environment
Conda activate openvino_env
7. Clone OpenVINO Repo
git clone --depth=1 https://github.com/openvinotoolkit/openvino_notebooks.git -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
8. Install the Packages
python -m pip install --upgrade pip wheel setuptools -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
9. Launch the Notebooks!
jupyter lab notebooks/201-vision-monodepth/201-vision-monodepth.ipynb
让你的笔电 开发板 开始跑各式开源 AI 模型!