conda build 忽略了我激活的环境?
conda build ignoring my activated environment?
我创建了一个 Python 3 Conda 环境,明确用于测试是否可以构建特定包,目标是 Python 3,而不是 2。但是,当我从此环境中启动 conda build
,它似乎想要针对 Python 2.7:
(pybert_py3) Davids-MacBook-Air-2:PyBERT dbanas$ conda build conda.recipe/chaco/
BUILD START: chaco-4.6.1-py27_0
我在 meta.yaml
文件中找不到任何内容,该文件将构建指向 Python 2.7。有谁知道这里发生了什么,以及我如何在 Python 3 指导这个构建?
Conda 不使用您的环境:
https://docs.conda.io/projects/conda-build/en/latest/concepts/recipe.html
- Creates a build environment and installs the build dependencies there.
因此,您需要明确设置Python版本:
--python PYTHON_VER Set the Python version used by conda build.
尝试:
conda build --python=3.6 conda.recipe/chaco/
我创建了一个 Python 3 Conda 环境,明确用于测试是否可以构建特定包,目标是 Python 3,而不是 2。但是,当我从此环境中启动 conda build
,它似乎想要针对 Python 2.7:
(pybert_py3) Davids-MacBook-Air-2:PyBERT dbanas$ conda build conda.recipe/chaco/
BUILD START: chaco-4.6.1-py27_0
我在 meta.yaml
文件中找不到任何内容,该文件将构建指向 Python 2.7。有谁知道这里发生了什么,以及我如何在 Python 3 指导这个构建?
Conda 不使用您的环境:
https://docs.conda.io/projects/conda-build/en/latest/concepts/recipe.html
- Creates a build environment and installs the build dependencies there.
因此,您需要明确设置Python版本:
--python PYTHON_VER Set the Python version used by conda build.
尝试:
conda build --python=3.6 conda.recipe/chaco/