Cannot create new python environment in ArcGIS Pro 2.2

15327
24
07-03-2018 12:13 AM
ChrisHills
Occasional Contributor

I have updated ArcGIS Pro to 2.2, and now I am unable to create a new python environment. I have tried both cloning the default, and creating a new one. It creates a new directory in the %USERPROFILE%\AppData\Local\ESRI\conda\envs folder, but after I click on Ok, it disappears, and even after restarting ArcGIS Pro only the default python environment is available.

24 Replies
ChrisHills
Occasional Contributor

I have updated to ArcGIS Pro 2.2P3 but I still have the same problem. I have attached the log file to this message.

0 Kudos
ChrisHills
Occasional Contributor

I tried running conda from a command prompt, and it resulted in the following, which suggests that it is trying to connect to the internet. In my workplace there is no direct internet access and browsers must use a proxy server. Perhaps ArcGIS's conda does not respect the environment's internet connection settings? In addition, these messages did not appear in the conda_debug.log file.

{
 "error": "Multiple Errors Encountered.",
 "errors": [
 {
 "caused_by": "None",
 "error": "CondaError: CondaHTTPError: HTTP 000 CONNECTION FAILED for url <
https://conda.anaconda.org/esri/win-64/arcgispro-2.2-0.tar.bz2>\nElapsed: -\n\nA
n HTTP error occurred when trying to retrieve this URL.\nHTTP errors are often i
ntermittent, and a simple retry will get you on your way.\n",
 "exception_name": "CondaError",
 "exception_type": "<class 'conda.CondaError'>",
 "message": "CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://co
nda.anaconda.org/esri/win-64/arcgispro-2.2-0.tar.bz2>\nElapsed: -\n\nAn HTTP err
or occurred when trying to retrieve this URL.\nHTTP errors are often intermitten
t, and a simple retry will get you on your way.\n"
 },
 {
 "caused_by": "None",
 "error": "CondaError: CondaHTTPError: HTTP 000 CONNECTION FAILED for url <
https://conda.anaconda.org/esri/win-64/arcgispro-2.2-0.tar.bz2>\nElapsed: -\n\nA
n HTTP error occurred when trying to retrieve this URL.\nHTTP errors are often i
ntermittent, and a simple retry will get you on your way.\n",
 "exception_name": "CondaError",
 "exception_type": "<class 'conda.CondaError'>",
 "message": "CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://co
nda.anaconda.org/esri/win-64/arcgispro-2.2-0.tar.bz2>\nElapsed: -\n\nAn HTTP err
or occurred when trying to retrieve this URL.\nHTTP errors are often intermitten
t, and a simple retry will get you on your way.\n"
 },
 {
 "caused_by": "None",
 "error": "CondaError: CondaHTTPError: HTTP 000 CONNECTION FAILED for url <
https://conda.anaconda.org/esri/win-64/arcgispro-2.2-0.tar.bz2>\nElapsed: -\n\nA
n HTTP error occurred when trying to retrieve this URL.\nHTTP errors are often i
ntermittent, and a simple retry will get you on your way.\n",
 "exception_name": "CondaError",
 "exception_type": "<class 'conda.CondaError'>",
 "message": "CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://co
nda.anaconda.org/esri/win-64/arcgispro-2.2-0.tar.bz2>\nElapsed: -\n\nAn HTTP err
or occurred when trying to retrieve this URL.\nHTTP errors are often intermitten
t, and a simple retry will get you on your way.\n"
 }
 ],
 "exception_name": "CondaMultiError",
 "exception_type": "<class 'conda.CondaMultiError'>"
}
0 Kudos
PhilLarkin1
Occasional Contributor III
0 Kudos
MichaelAugust
Occasional Contributor III

I too cannot create a new python env after updating, also spyder is no longer shown and I had that working just fine...what do I need to do to get spyder back?

I can actually see the environments being created with the names I'm giving them, however the "manage environments" interface in arcgispro does not list them as a choice.  I did the above suggestion and waited for the blue progress bar to stop...nothing.  The docs and yourself refer to "restarting" arcgispro - is there some other way to "restart" other than exiting the program and relaunching it?

my log (conda_debug.log --I don't have a "conda_log.txt" as above - should I?) indicates an issue with Numpy:

INFO:conda.proconfig:Detected ArcGISPro as product
DEBUG:__main__:conda.cli.main called with ('C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\Scripts\\conda.exe', 'proswap', '-p', 'C:\\Users\\xxx\\AppData\\Local\\ESRI\\conda\\envs\\Python3', '--json')
DEBUG:__main__:Ignoring first argument (C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\conda.exe), as it is not a subcommand
Swap: Directory environment detected
Swap: Received request for proswap to local environment C:\Users\xxx\AppData\Local\ESRI\conda\envs\Python3
Swap: After path resolution, environment is C:\Users\xxx\AppData\Local\ESRI\conda\envs\Python3, named Python3, is local? True
Swap: The environment C:\Users\xxx\AppData\Local\ESRI\conda\envs\Python3 doesn't contain NumPy, which is required for ArcGIS Pro.

Any Ideas?

0 Kudos
DanPatterson_Retired
MVP Emeritus

If you follow the link I posted.... https://community.esri.com/blogs/dan_patterson/2018/07/01/arcgis-pro-your-conda-environments

it shows you how to install spyder... clone or not

I still have no idea why spyder, jupyter console and jupyter notebook (or lab) aren't installed by default given the number of people programming with python

So you can either wait, or get spyder installed now

JoeBorgione
MVP Emeritus

I still have no idea why spyder, jupyter console and jupyter notebook (or lab) aren't installed by default given the number of people programming with python

We have the plenary streaming live in our office; maybe Jack will mention it sometime today...  

That should just about do it....
DanPatterson_Retired
MVP Emeritus
JoeBorgione
MVP Emeritus
0 Kudos
JürgenBiendara1
New Contributor III

I have upgraded to ArcGIS Pro 2.2.1 recently, I want to configure an utility network. With the copy & paste trick, I also managed to create a new project environment. Now I want to add the untools package. It seems to install, at least it takes some time to do something. But I don't see the untools listed in "Installed Packages", neither after refreshing the packages information nor after restarting ArcGIS Pro.

But, in the packages folder of my local conda environment (...\AppData\Local\ESRI\conda\pkgs) I do find the folder "untools-2.2.0-py36_0".

Does anyone have an idea what needs to be done?

0 Kudos
JoeBorgione
MVP Emeritus

ESRI needs to figure out a better way, that's what needs to be done.  In the mean time, Dan Patterson‌ has numerous blog posts addressing this issue.  I tried cloning and creating new environments and that never worked for me.  Check out Dans' blogs: what did work for  was using conda to install the Spyder package into the default environment.

(/blogs/dan_patterson/2018/07/01/arcgis-pro-your-conda-environments )

That should just about do it....