run conda create -n newenv ––clone arcgispro-p圓.Come up with a name for your new environment – here I’ll call it newenv.Change the directory to C:\Program Files\ArcGIS\Pro\bin\Python\ (assuming ArcGIS Pro installed to default location). Open a command prompt with administrative privileges.Getting my own conda environment with all of the ArcGIS packages set up took a bit of work – here’s how I initially approached the problem: Making our own conda environment, usually I’m not sure why there is a discrepancy in major version between the main copy and the environment, but it seems worth noting. What’s nice about the setup though is that ArcGIS Pro actually uses its own conda environment to isolate packages from the main installation, which seems like a wise way to do things.Īs an aside, the base python executable seems to be at version 3.5 while the executable in the main conda environment is 3.4.5 (the previous version of Pro was at 3.4.3 or 3.4.4). Unfortunately, this means you now need admin privileges to install packages – probably a good thing in many cases, but it also means that created conda environments based off the main environment requires admin privileges, so you should run any commands necessary in an admin command prompt. Assuming you installed ArcGIS Pro to the default location, Python is now located at C:\Program Files\ArcGIS\Pro\bin\Python. In fact, if you installed ArcGIS Pro Python previously, they recommend you remove it to avoid confusion. Moved executablesįirst, ArcGIS Pro no longer needs a separate Python install for out-of-application Python. With ArcGIS Pro 1.3, I had the opportunity to leverage conda, a package manager and environment manager that makes scientific computing a little easier, so I gave it a try – migration wasn’t super straightforward though. Until ArcGIS Pro 1.3, I successfully used virtualenv-based workflows with ArcGIS in order to isolate my package installations from the main Python installation that contains ArcGIS’ arcpy package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |