【问题标题】:Installing a package inside Conda using apt install使用 apt install 在 Conda 中安装软件包
【发布时间】:2020-07-31 17:39:18
【问题描述】:

我正在尝试在我的 Jetson TX2 中安装 opencv。我想将它安装在我的 conda 环境中。我使用以下命令这样做,

sudo apt-get install python-opencv

它实际上安装了 opencv,但在 conda 之外,所以我无法在 conda 中导入它。如何将它安装在我的 conda 中?。

【问题讨论】:

    标签: python opencv installation conda apt-get


    【解决方案1】:

    确保您处于 conda 环境中。

    运行 conda 命令,而不是 apt-get 命令。

    conda install -c conda-forge opencv
    

    【讨论】:

    • conda forge 没有像 Jetson 这样的 arm 设备的构建 :(
    【解决方案2】:

    你可以只在conda环境中安装pip,然后使用pip安装opencv。

    conda install pip
    pip install opencv-python
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-22
      • 2020-07-11
      • 2017-05-15
      • 1970-01-01
      • 2017-10-31
      • 2015-07-01
      • 2018-03-25
      • 2017-03-09
      相关资源
      最近更新 更多