简体   繁体   English

如何使用本地编译的 python 创建 conda 环境?

[英]How to create conda environment with locally compiled python?

How should one create a new environment with a locally compiled/built python?应该如何使用本地编译/构建的 python 创建一个新环境? All the information in the internet guides are about installing a python with a specific version, or installing local packages.互联网指南中的所有信息都是关于安装具有特定版本的 python 或安装本地软件包。

Any idea how to install a custom built python?知道如何安装定制的 python 吗? Should I build a conda package and install it locally?我应该构建一个 conda package 并在本地安装吗? (-c) (-C)

Thanks!谢谢!

It would have to be built as a Conda package, otherwise other Conda packages will not respect it as satisfying the python dependency requirement.它必须构建为 Conda package,否则其他 Conda 软件包将不会认为它满足python依赖要求。 The Conda Forge recipe for Python is licensed under BSD-3, so that may be a good starting point. Python 的 Conda Forge 配方在 BSD-3 下获得许可,因此这可能是一个很好的起点。 It is a bit complicated, but not sure there is a way to make the compilation trivial.这有点复杂,但不确定有没有办法让编译变得简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM