[英]conda build ignoring my activated environment?
I've created a Python 3 Conda environment, expressly for the purpose of testing whether a particular package could be built, targeting Python 3, as opposed to 2. However, when I launch a conda build
from this environment, it appears to want to target Python 2.7:我创建了一个 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
I can find nothing in the meta.yaml
file, which is directing the build towards Python 2.7.我在
meta.yaml
文件中找不到任何内容,该文件将构建定向到 Python 2.7。 Does anyone know what's going on, here, and how I direct this build at Python 3?有谁知道这里发生了什么,以及我如何在 Python 3 上指导这个构建?
Conda does not use your environment: Conda 不使用您的环境:
https://docs.conda.io/projects/conda-build/en/latest/concepts/recipe.html https://docs.conda.io/projects/conda-build/en/latest/concepts/recipe.html
- Creates a build environment and installs the build dependencies there.
创建构建环境并在那里安装构建依赖项。
Therefore, you need to set the Python version explicitly:因此,您需要明确设置 Python 版本:
--python PYTHON_VER Set the Python version used by conda build.
--python PYTHON_VER 设置 conda 构建使用的 Python 版本。
Try:尝试:
conda build --python=3.6 conda.recipe/chaco/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.