Hi -
I'm unable to clone the default arcgispro-py3 env in ArcGISPro 2.4.2. No matter what I try it give me an error message that openpyxl 2.6.1 doesn't exist. This makes little sense to me. Is there anything I can do short of completely reinstalling ArcGIS Pro?
Thanks,
Ryan
Well, I was about to send over some screenshots showing that I was in fact in the right environment to clone, but on this attempt the cloning mysteriously worked. No idea why, but I'm happy it finally stuck.
But, now I get a message saying the clone is required and can't be removed:
Regardless, I don't plan on removing it and am just happy it finally works.
Thanks for your help, Dan Patterson and Arne Gelfert.
Do a package check using conda (not the package manager
Try importing it in your script IDE, if it exists
<SPAN class="keyword token">import</SPAN> openpyxl dir<SPAN class="punctuation token">(</SPAN>openpyxl<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="string token">'DEFUSEDXML'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'LXML'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'NUMPY'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'PANDAS'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'Workbook'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'__author__'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> snip<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Note that the path you are using must be the one that you installed arcgis Pro in. If conda doesn't reflect this path then you will have to switch environments. (I am using Pro 2.5 beta 2, so the openpyxl might be different)
If you need a different version of openpyxl, you will have to install it, but it may be 'pinned' to a version higher than what you want
I probably should have made it clearer in my post, but openpyxl 2.6.1 is already installed. I'm trying to clone the default environment that comes with ArcGIS Pro.
conda install <SPAN class="punctuation token">(</SPAN>whatever<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN>dry<SPAN class="operator token">-</SPAN>run<SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
Always do a dry-run and examine whatever might be upgraded and/or pinned.
Should things go bad, you can rollback by
conda install <SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN>revision <SPAN class="punctuation token">(</SPAN>some number <SPAN class="operator token">and</SPAN> no brackets<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
where the revision number was when life was good
Try this. It will tell you if you have openpyxl installed. Do this at the Windows command line:
conda list<SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
This lists all the packages that are installed. If you don't see openpyxl, then try:
conda install openpyxl<SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
You might have to accept some other dependencies that need to be installed along with the package.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.