【问题标题】:OpenVino on MacOS using Anaconda使用 Anaconda 在 MacOS 上的 OpenVino
【发布时间】:2020-05-02 19:40:56
【问题描述】:

如何使用 Anaconda 安装 OpenVino。安装所需的 OpenCV 和 CMake 等先决条件是否可行?

(IntelEnv) ChrNinja@ChrNinja demo % ./demo_squeezenet_download_convert_run.sh
target_precision = FP16
[setupvars.sh] OpenVINO environment initialized


###################################################



Downloading the Caffe model and the prototxt
Installing dependencies
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Processing /Users/christianh/Library/Caches/pip/wheels/a7/c1/ea/cf5bd31012e735dc1dfea3131a2d5eae7978b251083d6247bd/PyYAML-5.3.1-cp27-cp27m-macosx_10_15_x86_64.whl
Collecting requests
  Using cached https://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl
Collecting idna<3,>=2.5
 Using cached https://files.pythonhosted.org/packages/89/e3/afebe61c546d18fb1709a61bee788254b40e736cff7271c7de5de2dc4128/idna-2.9-py2.py3-none-any.whl
Collecting chardet<4,>=3.0.2
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting certifi>=2017.4.17
  Using cached https://files.pythonhosted.org/packages/57/2b/26e37a4b034800c960a00c4e1b3d9ca5d7014e983e6e729e33ea2f36426c/certifi-2020.4.5.1-py2.py3-none-any.whl
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
  Using cached https://files.pythonhosted.org/packages/e1/e5/df302e8017440f111c11cc41a6b432838672f5a70aa29227bf58149dc72f/urllib3-1.25.9-py2.py3-none-any.whl
Installing collected packages: pyyaml, idna, chardet, certifi, urllib3, requests
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/PyYAML-5.3.1.dist-info'
Consider using the `--user` option or check the permissions.

Error on or near line 150; exiting with status 1

【问题讨论】:

  • 有实际问题吗?你有没有尝试过,做过任何研究?请参阅How to Askhelp center
  • 我查看了 PATH 问题并进行了更改,观看了有关 MacOS anaconda 安装的视频,其中该人使用虚拟环境和更多研究。 CMake 现在可以工作,但在安装前提条件期间,它会在系统 Python 2.7 中搜索 pyyaml。我在 Anaconda 虚拟环境中使用我的命令,但它仍然引用系统的 Python
  • 我在 Anaconda 虚拟环境中使用我的命令,但它仍然引用系统的 Python 你能分享一下终端命令和输出吗?
  • @AMC 我更新了我的问题。 shell脚本恢复到Python2.7可以吗?在脚本中,它检查是否安装了 Python 3.X(它在 Anaconda 中),但它仍然使用系统 Python。
  • 我已经更新了我的问题。 shell脚本恢复到Python2.7可以吗?在脚本中,它会检查是否安装了 Python 3.X(它在 Anaconda 中),但它仍然使用系统 Python。 请原谅,我不确定我是否理解您的意思,您能否详细说明?

标签: macos conda openvino


【解决方案1】:

1。将 conda 更新到最新版本:

conda 更新 --all

2。安装英特尔® Distribution of OpenVINO™ Toolkit:

conda 安装 openvino-ie4py -c openvino

3。安装 OpenCV。这是运行示例所必需的:

conda 安装 opencv

4。验证安装的包:

python -c“导入openvino”

【讨论】:

    猜你喜欢
    • 2020-10-24
    • 1970-01-01
    • 1970-01-01
    • 2020-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多