OpenVINO notebooks 运行环境安装2023June

该文详细介绍了如何一步步安装Python、Git以及OpenVINO的必要组件,包括创建和激活conda虚拟环境,克隆OpenVINO仓库,安装相关包,并最终启动JupyterLab来运行Notebooks。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

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 模型!

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

FoxJK1015

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值