What is the best way to cloen python? I like to add new modules and in a old post I read that I sholud not install them (pip install ....) to the default env (arcgispro-py3). So I cloned Python wih ArcGIS Pro but with conda env list I could not find the cloned env. How can I clone on the commandline the python env? I wolud like to setup a Python env reproducible. Does conda create --name myClone --clone arcgispro-py3 the same as a clone with ArcGIS Pro? CanI share this env also with others?
Yes I got it working. And I could also add new modules and update existing modules. Problem solved
Sounds like you got it working then? For me the following works ...
conda create <SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN>clone arcgispro<SPAN class="operator token">-</SPAN>py3 <SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN>name arcgispro<SPAN class="operator token">-</SPAN>clone<SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
I don't clone my environments very often, so I'm not sure how many others way to do this there are. The export route works for me when I try this:
<SPAN class="comment token"># Pick the environment to clone</SPAN> activate <SPAN class="operator token"><</SPAN>your<SPAN class="operator token">-</SPAN>environment<SPAN class="operator token">></SPAN> <SPAN class="comment token"># Dump the environment into a file</SPAN> conda env export <SPAN class="operator token">></SPAN> c<SPAN class="punctuation token">:</SPAN>\temp\test<SPAN class="punctuation token">.</SPAN>yaml <SPAN class="comment token"># Create new environment from that file</SPAN> conda env create <SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN>file c<SPAN class="punctuation token">:</SPAN>\temp\test<SPAN class="punctuation token">.</SPAN>yaml <SPAN class="operator token">-</SPAN>n test<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
if I do a clone wtith conda clone I can add this new environment to ArcGIS Pro. If I do it with conda-env export ... and conda-env creat I can't add the new environment.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.