简体   繁体   中英

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. 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. Is it possible?

The only way I can imagine accomplishing this would be to make your own build of the python package. 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.

Otherwise, no, not possible, AFAIK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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