<?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: PyCharm  error - Issues with the python interpreter in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/pycharm-error-issues-with-the-python-interpreter/m-p/1251438#M66664</link>
    <description>&lt;P&gt;You need to set the interpreter for the script that you are trying to run.&amp;nbsp; You can do this by clicking on the env name in the lower right corner of the window and selecting the interpreter. For example, I have Pro (3.9), the system's (3.11) and ArcMaps 2.7 for when I need 2.7.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ints.png" style="width: 331px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61230iBA580D71C5563955/image-size/large?v=v2&amp;amp;px=999" role="button" title="ints.png" alt="ints.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and then select the one that is mapped to your Pro install.&lt;/P&gt;&lt;P&gt;PS, you probably should clone your base python env instead of using the default env. Your cloned envs would be in your C:\Users\you\AppData\Local\ESRI\conda\envs directory.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 17:46:32 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2023-01-25T17:46:32Z</dc:date>
    <item>
      <title>PyCharm  error - Issues with the python interpreter</title>
      <link>https://community.esri.com/t5/python-questions/pycharm-error-issues-with-the-python-interpreter/m-p/1251353#M66663</link>
      <description>&lt;P&gt;I am getting an error when I try to run my script in PyCharm as it is not recognizing arcpy. I think it has to do with the system interpreter or the conda interpreter. I have ArcGIS Pro 2.9 so the python version is 3.7. For the python interpreter on settings, I have Python 3.7 which is the correct one, but I think the problem is with the system interpreter. For the system interpret it is stuck n the C:\\Python311\python.exe and even if I change it as administrator it goes back to that python version. Maybe it is some kind of system variable from a previous version.&lt;/P&gt;&lt;P&gt;I see on command prompt that the python versions I have are different from the one installed by arcgisPro and I think this is the root of the problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pycharm6.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61209i7807826C3E927E36/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pycharm6.PNG" alt="Pycharm6.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pycharm5.PNG" style="width: 915px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61208i8595D4DF3C8BFB75/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pycharm5.PNG" alt="Pycharm5.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am attaching images for my settings (the PyCharm version is 2022.3.1. Any help is appreciated! Thank you!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pycharm1.PNG" style="width: 974px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61195iAC91B2978F97F194/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pycharm1.PNG" alt="Pycharm1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pycharm4.PNG" style="width: 875px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61194i24DAC60D71912A43/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pycharm4.PNG" alt="Pycharm4.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pycharm3.PNG" style="width: 987px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61196i273C17D59ABB3DAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pycharm3.PNG" alt="Pycharm3.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pycharm6.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61204i6EB3B2261256EE5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pycharm6.PNG" alt="Pycharm6.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pycharm2.PNG" style="width: 969px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61197iEE2C45AD21679356/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pycharm2.PNG" alt="Pycharm2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 16:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pycharm-error-issues-with-the-python-interpreter/m-p/1251353#M66663</guid>
      <dc:creator>WilsonIonara</dc:creator>
      <dc:date>2023-01-25T16:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: PyCharm  error - Issues with the python interpreter</title>
      <link>https://community.esri.com/t5/python-questions/pycharm-error-issues-with-the-python-interpreter/m-p/1251438#M66664</link>
      <description>&lt;P&gt;You need to set the interpreter for the script that you are trying to run.&amp;nbsp; You can do this by clicking on the env name in the lower right corner of the window and selecting the interpreter. For example, I have Pro (3.9), the system's (3.11) and ArcMaps 2.7 for when I need 2.7.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ints.png" style="width: 331px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61230iBA580D71C5563955/image-size/large?v=v2&amp;amp;px=999" role="button" title="ints.png" alt="ints.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and then select the one that is mapped to your Pro install.&lt;/P&gt;&lt;P&gt;PS, you probably should clone your base python env instead of using the default env. Your cloned envs would be in your C:\Users\you\AppData\Local\ESRI\conda\envs directory.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 17:46:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pycharm-error-issues-with-the-python-interpreter/m-p/1251438#M66664</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-01-25T17:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: PyCharm  error - Issues with the python interpreter</title>
      <link>https://community.esri.com/t5/python-questions/pycharm-error-issues-with-the-python-interpreter/m-p/1252520#M66693</link>
      <description>&lt;P&gt;I uninstalled ArcGIS Pro so that it would reinstall conda, then I deleted the old python version from the system variable path. I also reinstalled PyCharm, and also cloned an environment for ArcPro. Every time I tried to set the interpreter it would go back to the old version but doing all the steps I mentioned worked and now I have PyCharm working like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thank you for your answer!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 20:49:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pycharm-error-issues-with-the-python-interpreter/m-p/1252520#M66693</guid>
      <dc:creator>WilsonIonara</dc:creator>
      <dc:date>2023-01-27T20:49:47Z</dc:date>
    </item>
  </channel>
</rss>

