<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: env() reference in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262749#M20256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;From Python console:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;import arcpy&lt;/STRONG&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;input&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt; File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.3.2\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import&lt;BR /&gt; module = self._system_import(name, *args, **kwargs)&lt;BR /&gt; File "C:\ArcGIS\Desktop10.7\ArcPy\arcpy\__init__.py", line 22, in &amp;lt;module&amp;gt;&lt;BR /&gt; from arcpy.geoprocessing import gp&lt;BR /&gt;ImportError: cannot import name gp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dir(arcpy)&lt;/STRONG&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;input&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2020 15:14:15 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-02-07T15:14:15Z</dc:date>
    <item>
      <title>env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262727#M20234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to use Pycharm, as IDE for python, but it seemd that the function arcpy.&lt;STRONG&gt;env&amp;nbsp;&lt;/STRONG&gt;is missing from __init_.PY...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using&amp;nbsp;C:\Python27\ArcGISx6410.5 interpreter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to run it inside PyCharm I get :&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGISx6410.5\python.exe U:/Prog/PYScript/Geosoft2ArcGIS.py&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "U:/Prog/PYScript/Geosoft2ArcGIS.py", line 12, in &amp;lt;module&amp;gt;&lt;BR /&gt; import arcpy&lt;BR /&gt; File "c:\arcgis\desktop10.7\ArcPy\arcpy\__init__.py", line 22, in &amp;lt;module&amp;gt;&lt;BR /&gt; from arcpy.geoprocessing import gp&lt;BR /&gt;ImportError: cannot import name gp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2020 18:13:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262727#M20234</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-05T18:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262728#M20235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is there,&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geoprocessing &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; gp

dir&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gp&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'__class__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__delattr__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__dict__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__dir__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__doc__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__eq__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__format__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__ge__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__getattr__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__getattribute__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__gt__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__hash__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__init__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; '__init_subclass_&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; snip &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;can you do a basic... import arcpy ..., if not then your environment isn't installed properly or you are using the wrong python and not the one distributed with Arc*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262728#M20235</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T12:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262729#M20236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS installed it there :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yves Allaire  Technicien sénior en géologie&lt;/P&gt;&lt;P&gt;yves.allaire@agnicoeagle.com  Direct 819.874.5980 ,4103603&lt;/P&gt;&lt;P&gt;Agnico Eagle Mines Limited - Exploration Val-d’Or - 765, chemin de la mine Goldex - Val-d'Or, QC, Canada J9P 7G4&lt;/P&gt;&lt;P&gt;agnicoeagle.com&amp;lt;http://agnicoeagle.com&amp;gt;  &amp;lt;https://facebook.com/agnicoeagle&amp;gt;    &amp;lt;http://www.twitter.com/agnicoeagle&amp;gt;    &amp;lt;http://www.linkedin.com/company/312686&amp;gt;    &amp;lt;http://www.youtube.com/agnicoeaglevideos&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De : Dan Patterson &amp;lt;geonet@esri.com&amp;gt;&lt;/P&gt;&lt;P&gt;Envoyé : 5 février 2020 14:28&lt;/P&gt;&lt;P&gt;À : Yves Allaire &amp;lt;yves.allaire@agnicoeagle.com&amp;gt;&lt;/P&gt;&lt;P&gt;Objet :  Re:  - Re: env() reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAUTION: EXTERNAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2020 19:57:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262729#M20236</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-05T19:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262730#M20237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nothing showing in your response,&amp;nbsp; so did the simple&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;work or did it fail too?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2020 21:42:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262730#M20237</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-05T21:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262731#M20238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've repaired ArcGIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Pycharm the interpreter is : I've attached a screen capture.&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGISx6410.5\python.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After running this is what shows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PyDev console: starting.&lt;/P&gt;&lt;P&gt;Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40)  on win32&lt;/P&gt;&lt;P&gt;runfile('U:/Prog/PYScript/Geosoft2ArcGIS.py', wdir='U:/Prog/PYScript')&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;  File "&lt;/P&gt;&lt;P&gt;    import Arcpy&lt;/P&gt;&lt;P&gt;  File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.3.2\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import&lt;/P&gt;&lt;P&gt;    module = self._system_import(name, *args, **kwargs)&lt;/P&gt;&lt;P&gt;ImportError: No module named Arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yves Allaire  Technicien sénior en géologie&lt;/P&gt;&lt;P&gt;yves.allaire@agnicoeagle.com  Direct 819.874.5980 ,4103603&lt;/P&gt;&lt;P&gt;Agnico Eagle Mines Limited - Exploration Val-d’Or - 765, chemin de la mine Goldex - Val-d'Or, QC, Canada J9P 7G4&lt;/P&gt;&lt;P&gt;agnicoeagle.com&amp;lt;http://agnicoeagle.com&amp;gt;  &amp;lt;https://facebook.com/agnicoeagle&amp;gt;    &amp;lt;http://www.twitter.com/agnicoeagle&amp;gt;    &amp;lt;http://www.linkedin.com/company/312686&amp;gt;    &amp;lt;http://www.youtube.com/agnicoeaglevideos&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De : Dan Patterson &amp;lt;geonet@esri.com&amp;gt;&lt;/P&gt;&lt;P&gt;Envoyé : 5 février 2020 16:44&lt;/P&gt;&lt;P&gt;À : Yves Allaire &amp;lt;yves.allaire@agnicoeagle.com&amp;gt;&lt;/P&gt;&lt;P&gt;Objet :  Re:  - Re: env() reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAUTION: EXTERNAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 12:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262731#M20238</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-06T12:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262732#M20239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's try again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import Arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is wrong... use lowercase for 'arcpy'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, whats up with the 7 jpg files every time you post.&lt;/P&gt;&lt;P&gt;You can embed images in a thread using the camera icon on the button bar above.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 12:49:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262732#M20239</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-06T12:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262733#M20240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan, sorry about the capital A in Arcpy, I'm used to vba, no need to worry about leter cases !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've corrected it and it't back to my gp problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run this code&amp;nbsp; :&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;I get :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raceback (most recent call last):&lt;BR /&gt; File "&amp;lt;input&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt; File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.3.2\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile&lt;BR /&gt; pydev_imports.execfile(filename, global_vars, local_vars) # execute the script&lt;BR /&gt; File "U:/Prog/PYScript/Geosoft2ArcGIS.py", line 12, in &amp;lt;module&amp;gt;&lt;BR /&gt; import arcpy&lt;BR /&gt; File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.3.2\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import&lt;BR /&gt; module = self._system_import(name, *args, **kwargs)&lt;BR /&gt; File "c:\arcgis\desktop10.7\ArcPy\arcpy\__init__.py", line 22, in &amp;lt;module&amp;gt;&lt;BR /&gt; from arcpy.geoprocessing import gp&lt;BR /&gt;ImportError: cannot import name gp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/480432_Capture.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 13:30:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262733#M20240</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-06T13:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262734#M20241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to point pycharm to use the pythonw.exe (or python.exe) that is in the same path as arcpy.&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;"c:\arcgis\desktop10.7\ArcPy\....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;somewhere in that path, however, remembering back to the arcmap days, I thought python was installed in a c:\python\arcmapxxx\ path???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;ArcGIS Pro cleans this all up.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;In any event, you have to locate the 'arcpy' folder, backtrack to find the python.exe file in that path and set pycharm to use it and not another python, which I suspect you have installed somewhere.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;If you need 64 bit, you should also switch to Pro if possible, since there are a number of issues with the background geoprocessing and separate python install that is required.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Good luck&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 14:13:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262734#M20241</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-06T14:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262735#M20242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan you are correct. ArcMap's default install path ( At least on my machine ) is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.5\python.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Pro, the path to python for my machine is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yves,&amp;nbsp; have you tried a full uninstall and reinstall of arcmap?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:00:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262735#M20242</guid>
      <dc:creator>deleted-user-NvcfpBOWaKwr</dc:creator>
      <dc:date>2020-02-06T15:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262736#M20243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've removed the Python option (modify the ArcMap installation), then add it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's now saved in&amp;nbsp;C:\Python27\ArcGIS10.7, I've tried both the Python and Pythonw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sys.path.extend(['U:\\Prog\\PYScript', 'C:/Python27/ArcGIS10.7'])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image" height="494" src="https://community.esri.com/legacyfs/online/480433_Capture.PNG" width="950" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262736#M20243</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-06T15:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262737#M20244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Y&lt;EM&gt;ou have to point pycharm to use the pythonw.exe (or python.exe) that is in the same path as arcpy.&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM style="background-color: #ffffff; border: 0px; font-size: 14px; "&gt;"c:\arcgis\desktop10.7\ArcPy\....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I've pointed Pycharm to&amp;nbsp;C:\Python27\ArcGIS10.7, but arcpy is somewhere else, in the ArcGIS folder, C:\ArcGIS\Desktop10.7\arcpy,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;They are in seperate folders. no Python.exe in Arcpy folder (clean install)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:45:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262737#M20244</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-06T15:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262738#M20245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, not an arcmap user... conda and Pro and Spyder&lt;/P&gt;&lt;P&gt;But&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/latest/analyze/python/importing-arcpy.htm" title="https://desktop.arcgis.com/en/arcmap/latest/analyze/python/importing-arcpy.htm"&gt;Importing ArcPy—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gives a protracted discussion of sys paths and paths and imports.&amp;nbsp; In essence, you IDE has to make sure it can find arcpy especially if it was installed before arcmap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps one of the lurking &lt;EM&gt;pycharm&amp;nbsp;&lt;/EM&gt;ers or &lt;EM&gt;pyscripter&amp;nbsp;&lt;/EM&gt;s will leap in to the rescue to sort out your dilema&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3420"&gt;Joshua Bixby&lt;/A&gt;‌ ? &lt;A href="https://community.esri.com/migrated-users/252836"&gt;Joe Borgione&lt;/A&gt;‌ ? &lt;A href="https://community.esri.com/migrated-users/254418"&gt;Matthew Driscoll&lt;/A&gt;‌ ? amongst the arcmap users viewing this thread.&amp;nbsp; Any ideas? (besides switching to ArcGIS Pro)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 16:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262738#M20245</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-06T16:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262739#M20246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 16:41:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262739#M20246</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-06T16:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262740#M20247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/113455" target="_blank"&gt;Yves Allaire&lt;/A&gt;‌, let's cut out the script itself and try just running the import codes from within the Python console in PyCharm, just make sure the console interpreter is set to the same one you want to test.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;PyDev console&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; starting&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
Python &lt;SPAN class="number token"&gt;2.7&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;16&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;v2&lt;SPAN class="number token"&gt;.7&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;16&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;413a49145e&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Mar  &lt;SPAN class="number token"&gt;4&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2019&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;01&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;30&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;55&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;MSC v&lt;SPAN class="number token"&gt;.1500&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;32&lt;/SPAN&gt; bit &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Intel&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; on win32
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geoprocessing &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; gp
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; 
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:53:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262740#M20247</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T12:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262741#M20248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/480492_Capture.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 18:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262741#M20248</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-06T18:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262742#M20249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your screenshot shows you running the script.&amp;nbsp; I am asking you to open a clean Python console and try importing the arcpy module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 18:38:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262742#M20249</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-02-06T18:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262743#M20250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I create a new project from scratch and go to the Python console here is what I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.7\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2019.3.2\plugins\python-ce\helpers\pydev\pydevconsole.py" --mode=client --port=61237&lt;BR /&gt;import sys; print('Python %s on %s' % (sys.version, sys.platform))&lt;BR /&gt;sys.path.extend(['U:\\Prog\\PYScript\\untitled', 'U:/Prog/PYScript/untitled'])&lt;BR /&gt;PyDev console: starting.&lt;BR /&gt;Python 2.7.16 (v2.7.16:413a49145e, Mar 4 2019, 01:30:55) [MSC v.1500 32 bit (Intel)] on win32&lt;BR /&gt;import arcpy&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;input&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt; File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.3.2\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import&lt;BR /&gt; module = self._system_import(name, *args, **kwargs)&lt;BR /&gt; File "C:\ArcGIS\Desktop10.7\ArcPy\arcpy\__init__.py", line 22, in &amp;lt;module&amp;gt;&lt;BR /&gt; from arcpy.geoprocessing import gp&lt;BR /&gt;ImportError: cannot import name gp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 18:55:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262743#M20250</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-06T18:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262744#M20251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to import any packages for that Python bundle, e.g., numpy, xlrd, etc...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 20:32:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262744#M20251</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-02-06T20:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262745#M20252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to import (install)&amp;nbsp;them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 20:53:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262745#M20252</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-06T20:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: env() reference</title>
      <link>https://community.esri.com/t5/python-questions/env-reference/m-p/262746#M20253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joe means import from the command line in the python IDE, not install them.&amp;nbsp; The packages may indeed be installed but in a different "Site Packages"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 20:58:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-reference/m-p/262746#M20253</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-06T20:58:03Z</dc:date>
    </item>
  </channel>
</rss>

