[英]Create an anaconda environment with an specific installed Python interpreter
I'm using anaconda for manage my Python's environments and I want to create an env with a python executable file as interpreter.我正在使用 anaconda 来管理我的 Python 环境,我想创建一个带有 python 可执行文件作为解释器的环境。 I didn't find similar question on other topic.
我没有在其他主题上找到类似的问题。
To be more precise, I don't want to create an env like this :更准确地说,我不想创建这样的环境:
conda create --name my_env python=3.6.9
I want to create an env with a pre-installed python interpreter, tell to anaconda where to find the python executable file in my machine (in my case /usr/bin/python3
) and use it as the interpreter for the env.我想用预装的 python 解释器创建一个 env,告诉 anaconda 在我的机器中哪里可以找到 python 可执行文件(在我的例子中是
/usr/bin/python3
),并将它用作 env 的解释器。 Is it possible?是否可以?
The only way I can imagine accomplishing this would be to make your own build of the python
package.我能想象完成这个的唯一方法是制作你自己的
python
包构建。 Perhaps having a look at how Conda Forge does this might be informative, though you can likely do a very trimmed down version depending on where you expect to run it.也许看看Conda Forge 如何做到这一点可能会提供信息,尽管您可能会根据您希望在哪里运行它来制作一个非常精简的版本。
Otherwise, no, not possible, AFAIK.否则,不,不可能,AFAIK。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.