Select to view content in your preferred language

Python package cloning not working

3549
5
Jump to solution
05-15-2022 10:29 AM
FraserM
New Contributor III

FraserM_0-1652635548324.pngLong story short: when I click the clone default arcgis pro python environment, it clones. And then when I click the dot next to the cloned environment to select it, then press ok, I get stuck with the loading bar (as per the attached image) for ages (30 mins + ) with no sign of the new environment being activated. If I restart Arc the cloned environment has not been activated. Am I doing something wrong, or is this just a bug? I've restarted my PC and the issue persists.

 

0 Kudos
1 Solution

Accepted Solutions
HildermesJoséMedeirosFilho
New Contributor III

If I were you I would clone it mannualy.

  1. windows + x
  2. search "python command prompt"

You should see somethin like this:

HildermesJosMedeirosFilho_0-1652652584591.png

 

You are now at yours active conda env

cd pathWhereYouWantYourEnv

conda create --prefix=arcgispro-py3-clone --clone arcgispro-py3

proswap arcgispro-py3-clone

The img bellow shows the steps:

HildermesJosMedeirosFilho_1-1652652911798.png

And that it, have fun coding.

View solution in original post

5 Replies
HildermesJoséMedeirosFilho
New Contributor III

If I were you I would clone it mannualy.

  1. windows + x
  2. search "python command prompt"

You should see somethin like this:

HildermesJosMedeirosFilho_0-1652652584591.png

 

You are now at yours active conda env

cd pathWhereYouWantYourEnv

conda create --prefix=arcgispro-py3-clone --clone arcgispro-py3

proswap arcgispro-py3-clone

The img bellow shows the steps:

HildermesJosMedeirosFilho_1-1652652911798.png

And that it, have fun coding.

FraserM
New Contributor III

cool taht workerd, thank you 

Chess
by
New Contributor

Thanks for the solution. I am using the conda command as you descibe, but I get the error "HTTP 000 CONNECTION FAILED for url ..."? Downloading the packges in the internet browser works.

It didn't help to set ssl_verify to false

conda config --set ssl_verify false

"k" parameter also didn't work (runs the command in the insecure ssl mode)
conda create --prefix=arcgispro-py3-clone -k --clone arcgispro-py3

Any ideas are highly appreciated.

Chess_3-1673013336654.png

 

Chess_1-1673013142192.png

 

 

0 Kudos
Hildermes
Esri Contributor

Hello, @Chess .

If I'm not wrong, that 0% it is a indicator that your system is blocking your python to do internet connection (firewall or antivirus might be the culprint).

If you are in a corporate worskpace you might have at least 3 options:
- Ask the IT team to check the firewall;
- Ask the IT team if you can use a router wifi ( It could be your phone or they might have one, without the firewall rules).
- Do offline clone;

If you are at home just change your firewall rules, or check your antivirus rules.

0 Kudos
kmsmikrud
Regular Contributor

Hi @Chess ,

I am running into the similar http messages trying to clone the default python environment ArcGIS Pro 3.0. I've tried both the package manager and also command line instructions similar to the above but listed below. Both are throwing the same http errors. Did you get this resolved/find a work around?

How To: Clone a Python environment with the Python Command Prompt (esri.com)

Thanks in advance,

Kathy

0 Kudos