简体   繁体   English

conda build 忽略我激活的环境?

[英]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

  1. 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.

相关问题 从终端启动Sublime Text 3,并使用激活的conda环境进行构建 - Launch sublime text 3 from terminal and build with activated conda environment 在激活 conda 环境的情况下,在 powershell 中使用 Python - Use Python in powershell with conda environment activated Python解释器在Conda环境中,但是该环境没有被激活 - Python interpreter is in a Conda environment, but the environment has not been activated Python在conda环境下,但是在Windows虚拟环境下还没有激活 - Python is in a Conda environment, but it has not been activated in a Windows virtual environment Windows CMD:“这个Python解释器在conda环境中,但是环境还没有激活” - Windows CMD: "This Python interpreter is in a conda environment, but the environment has not been activated" 警告“此 Python 解释器处于 conda 环境中,但该环境尚未激活” - Warning "This Python interpreter is in a conda environment, but the environment has not been activated" 这个Python解释器在conda环境下,但是环境还没有激活 - This Python interpreter is in a conda environment, but the environment has not been activated Python Anaconda解释器在conda环境下,但是环境没有激活 - Python Anaconda interpreter is in a conda environment, but the environment has not been activated cmd警告:python解释器在conda环境中,但是环境没有被激活 - cmd warning: python interpreter is in a conda environment, but the environment has not been activated 构建期间未设置 Conda 构建环境变量 - Conda build environment variables not set during build
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM