<?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 PyCharm environment broke access to arcpy... help?! in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/pycharm-environment-broke-access-to-arcpy-help/m-p/1639368#M74572</link>
    <description>&lt;P&gt;I seem to have broken arcpy by setting up an "environment" in a certain way in PyCharm.&amp;nbsp; Can anyone help me fix this, without having to uninstall and reinstall ArcGIS Pro?&amp;nbsp; (Reinstalling would mean I'd have to re-do a bunch of other settings on this machine.)&lt;/P&gt;&lt;P&gt;I know this documentation exists about setting up PyCharm for Pro, but I failed to double-check it today.&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/t5/python-documents/pycharm-setup-for-arcgis-desktop/ta-p/1125129" target="_blank" rel="noopener"&gt;PyCharm Setup for ArcGIS Desktop - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Instead of setting up an "existing environment" like the documentation says to, I chose "new environment," with "location" of&amp;nbsp;C:\Program Files\ArcGIS\Pro\bin\Python\envs\argispro-py3 - apparently this was bad. For "interpreter," I selected the python.exe from that arcgispro-py3 folder.&lt;/P&gt;&lt;P&gt;Now when I run a script that worked perfectly on a different machine, I get error "No module named 'arcpy'".&lt;/P&gt;&lt;P&gt;When I double-click&amp;nbsp;"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" in File Explorer and then type "import arcpy," I also get the same error.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Aug 2025 19:12:02 GMT</pubDate>
    <dc:creator>AllenDailey1</dc:creator>
    <dc:date>2025-08-05T19:12:02Z</dc:date>
    <item>
      <title>PyCharm environment broke access to arcpy... help?!</title>
      <link>https://community.esri.com/t5/python-questions/pycharm-environment-broke-access-to-arcpy-help/m-p/1639368#M74572</link>
      <description>&lt;P&gt;I seem to have broken arcpy by setting up an "environment" in a certain way in PyCharm.&amp;nbsp; Can anyone help me fix this, without having to uninstall and reinstall ArcGIS Pro?&amp;nbsp; (Reinstalling would mean I'd have to re-do a bunch of other settings on this machine.)&lt;/P&gt;&lt;P&gt;I know this documentation exists about setting up PyCharm for Pro, but I failed to double-check it today.&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/t5/python-documents/pycharm-setup-for-arcgis-desktop/ta-p/1125129" target="_blank" rel="noopener"&gt;PyCharm Setup for ArcGIS Desktop - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Instead of setting up an "existing environment" like the documentation says to, I chose "new environment," with "location" of&amp;nbsp;C:\Program Files\ArcGIS\Pro\bin\Python\envs\argispro-py3 - apparently this was bad. For "interpreter," I selected the python.exe from that arcgispro-py3 folder.&lt;/P&gt;&lt;P&gt;Now when I run a script that worked perfectly on a different machine, I get error "No module named 'arcpy'".&lt;/P&gt;&lt;P&gt;When I double-click&amp;nbsp;"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" in File Explorer and then type "import arcpy," I also get the same error.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 19:12:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pycharm-environment-broke-access-to-arcpy-help/m-p/1639368#M74572</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2025-08-05T19:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: PyCharm environment broke access to arcpy... help?!</title>
      <link>https://community.esri.com/t5/python-questions/pycharm-environment-broke-access-to-arcpy-help/m-p/1639375#M74573</link>
      <description>&lt;P&gt;a long shot&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/repair-an-environment.htm" target="_blank"&gt;Repair an environment—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you may have to repair the arcgispro install instead (when you go to "uninstall a program" there is a "repair" option which you should try first to see if it will just repair the ...arcgispro-py3 environment&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 19:19:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pycharm-environment-broke-access-to-arcpy-help/m-p/1639375#M74573</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-08-05T19:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: PyCharm environment broke access to arcpy... help?!</title>
      <link>https://community.esri.com/t5/python-questions/pycharm-environment-broke-access-to-arcpy-help/m-p/1639380#M74574</link>
      <description>&lt;P&gt;Thank you for sharing this idea!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 19:25:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pycharm-environment-broke-access-to-arcpy-help/m-p/1639380#M74574</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2025-08-05T19:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: PyCharm environment broke access to arcpy... help?!</title>
      <link>https://community.esri.com/t5/python-questions/pycharm-environment-broke-access-to-arcpy-help/m-p/1639382#M74575</link>
      <description>&lt;P&gt;I think I fixed it!&lt;/P&gt;&lt;P&gt;I was comparing the contents of&amp;nbsp;&lt;SPAN&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3, on the broken machine vs. a machine where arcpy works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I then noticed two files that were created today on the broken one, but do not exist on the good one. I deleted the files, then ran my script, and I didn't get the error!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The 2 files I deleted were:&amp;nbsp; .gitignore&amp;nbsp; &amp;nbsp;and&amp;nbsp; &amp;nbsp; pyvenv.cfg&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also deleted the PyCharm project I had created earlier.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 19:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pycharm-environment-broke-access-to-arcpy-help/m-p/1639382#M74575</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2025-08-05T19:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: PyCharm environment broke access to arcpy... help?!</title>
      <link>https://community.esri.com/t5/python-questions/pycharm-environment-broke-access-to-arcpy-help/m-p/1639417#M74576</link>
      <description>&lt;P&gt;I marked it as Accepted Solution as a reminder to check for unnecessary package files.&amp;nbsp; Good catch&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 20:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pycharm-environment-broke-access-to-arcpy-help/m-p/1639417#M74576</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-08-05T20:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: PyCharm environment broke access to arcpy... help?!</title>
      <link>https://community.esri.com/t5/python-questions/pycharm-environment-broke-access-to-arcpy-help/m-p/1641776#M74599</link>
      <description>&lt;P&gt;I will echo this as a possibility as I recently ran into a similar issue.&lt;BR /&gt;&lt;BR /&gt;For me it happened after installing Anaconda to help manage different environments, and up till then I was using Git Bash as the terminal of choice.&amp;nbsp; Now I can't seem to do everything with arc py in some environments with it.&amp;nbsp; Locally repairing got me back to good, but I am now seeing that having to activate environments in conda feels like a every time you restart a terminal instance thing, unless you setup a user environment variable, access it from the script to call it somehow, but if python is broken generally, it doesn't seem to help much.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 20:50:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pycharm-environment-broke-access-to-arcpy-help/m-p/1641776#M74599</guid>
      <dc:creator>TimWestern</dc:creator>
      <dc:date>2025-08-13T20:50:33Z</dc:date>
    </item>
  </channel>
</rss>

