<?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: ArcGIS Pro3.3 cannot import third-party libraries located at &amp;quot;\AppData\Roaming\Python\Python311\site-packages&amp;quot; in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1605929#M94984</link>
    <description>&lt;P&gt;&lt;FONT&gt;&lt;SPAN&gt;Yes, I only have one Python environment, which comes with ArcGIS Pro. I seem to have found a solution, which is to have to start cmd with administrator privileges and pip to install third-party libraries. The third-party library will then be installed in "C:\Program. Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages" instead of "\AppData\Roaming\Python\Python311\site-packages". This allows you to import in the built-in Python window.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Apr 2025 09:32:12 GMT</pubDate>
    <dc:creator>圈圈</dc:creator>
    <dc:date>2025-04-15T09:32:12Z</dc:date>
    <item>
      <title>ArcGIS Pro3.3 cannot import third-party libraries located at "\AppData\Roaming\Python\Python311\site-packages"</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1605894#M94978</link>
      <description>&lt;P&gt;Pro3.3 and Pro3.4都不能在自带的Python窗口内import安装在 "\AppData\Roaming\Python\Python311\site-packages"里的Python第三方库，必须将Python第三方库安装在"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages"内才能在自带的Python窗口内import。这是Pro的功能变化还是bug呢？&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Neither Pro3.3 nor Pro3.4 can import third-party Python libraries installed in "\AppData\Roaming\Python\Python311\site-packages" into the built-in Python window. Python third-party libraries must be installed in "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages" to import in the built-in Python window. Is this a feature change or a bug in Pro?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 02:52:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1605894#M94978</guid>
      <dc:creator>圈圈</dc:creator>
      <dc:date>2025-04-15T02:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro3.3 cannot import third-party libraries located at "\AppData\Roaming\Python\Python311\site-packages"</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1605897#M94979</link>
      <description>&lt;P&gt;can you append or extend using sys.path?&lt;/P&gt;&lt;P&gt;My IDE allows for adding other locations to look for user modules, I haven't experimented with the builtin python window or a ArcGIS Pro notebook&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 03:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1605897#M94979</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-04-15T03:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro3.3 cannot import third-party libraries located at "\AppData\Roaming\Python\Python311\site-packages"</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1605898#M94980</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yes, it is also possible to import third-party libraries in VS Code, but the built-in Python Windows and custom toolboxes cannot import.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 03:23:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1605898#M94980</guid>
      <dc:creator>圈圈</dc:creator>
      <dc:date>2025-04-15T03:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro3.3 cannot import third-party libraries located at "\AppData\Roaming\Python\Python311\site-packages"</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1605922#M94982</link>
      <description>&lt;P&gt;I assume it's intended behaviour as the point of conda/venv/etc python environments is to not clash with the system python.&amp;nbsp; If you only have one python, then I can see your issue, but I have many and I definitely do not want them accessing libraries in that user site packages dir.&lt;/P&gt;&lt;P&gt;If you want to add additional libraries, the workflow is to clone your&amp;nbsp;arcgispro-py3 environment and use conda or the ArcGIS Python package manger to install those libraries into the clone.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 08:13:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1605922#M94982</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2025-04-15T08:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro3.3 cannot import third-party libraries located at "\AppData\Roaming\Python\Python311\site-packages"</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1605929#M94984</link>
      <description>&lt;P&gt;&lt;FONT&gt;&lt;SPAN&gt;Yes, I only have one Python environment, which comes with ArcGIS Pro. I seem to have found a solution, which is to have to start cmd with administrator privileges and pip to install third-party libraries. The third-party library will then be installed in "C:\Program. Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages" instead of "\AppData\Roaming\Python\Python311\site-packages". This allows you to import in the built-in Python window.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 09:32:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1605929#M94984</guid>
      <dc:creator>圈圈</dc:creator>
      <dc:date>2025-04-15T09:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro3.3 cannot import third-party libraries located at "\AppData\Roaming\Python\Python311\site-packages"</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1605935#M94986</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/what-is-conda.htm" target="_blank"&gt;Package Manager—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you can create any environment you want but the issue really depends on whether you want arcpy (hence arcgisscripting) or the arcgis module to work in that environment.&amp;nbsp; Also, the version of python is pinned to work with arcpy (currently python 3.11.x).&lt;/P&gt;&lt;P&gt;esri cautions about using pip to install packages if there is an equivalent version from conda channels&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/what-is-conda.htm" target="_blank"&gt;Package Manager—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This provides a list of third party libraries that you can install if they already aren't&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/available-python-libraries.htm" target="_blank"&gt;Available third-party Python libraries—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;so check it first since your package may be on esri's channel.&lt;/P&gt;&lt;P&gt;From within conda, install from the 'defaults' channel first before trying 'conda-forge', and pip last.&lt;/P&gt;&lt;P&gt;If you want to create your own environment, you don't need to clone if you don't want to work with/or need arcpy or tools from arctoolbox (for example I currently run python 3.12, numpy 2.2.2 etc separately from the&amp;nbsp; arcgispro-py3 environment)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 10:51:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1605935#M94986</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-04-15T10:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro3.3 cannot import third-party libraries located at "\AppData\Roaming\Python\Python311\site-packages"</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1606313#M95012</link>
      <description>&lt;P&gt;Thank you for your reply. I have read all the linked pages inserted in your reply and benefited a lot from them.&lt;/P&gt;&lt;P&gt;However, this does not solve my problem.&lt;/P&gt;&lt;P&gt;As a secondary developer of ArcGIS, ArcPy is a necessary python library, and other third-party Python libraries may also be used, and some libraries are not available in conda (such as python-docx), so I often use pip installation. This is also a habit I inherited from ArcMap.&lt;/P&gt;&lt;P&gt;Since the toolkits I make are often used by other non-developers, I can't just clone the Python environment for my own use. When other people use the toolkit, my tool automatically installs the Python third-party libraries they need.&lt;/P&gt;&lt;P&gt;In both ArcMap and ArcGIS Pro3.0 versions, my tools were able to automatically install and import Python third-party libraries for others when they were running. But to Pro3.3, the situation has changed, the specific change now Python third-party library installed successfully but can not import, resulting in tool failure. Later I found out the reason, which is that as mentioned before, neither Pro3.3 nor Pro3.4 can import Python third-party libraries installed in "\AppData\Roaming\Python\Python311\site-packages", while Pro3.0 can.&lt;/P&gt;&lt;P&gt;I understand what you are saying and do not recommend modifying Pro's default Python environment. I think Pro3.0 is doing a great job, Because it automatically installs Python third-party libraries in "\AppData\Roaming\Python\Python311\site-packages" instead of "C:\Program. Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages" and import smoothly.&lt;/P&gt;&lt;P&gt;While Pro3.3 installs Python third-party libraries in "\AppData\Roaming\Python\Python311\site-packages", but can not import smoothly, the solution is to use administrator permissions for pip installation. But then Python third-party libraries are installed in "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages", This runs counter to Esri's own statement that it "does not recommend modifying Pro's default Python environment."&lt;/P&gt;&lt;P&gt;I can't just clone the Python environment for my own use, because as I said before, the toolkit I make often needs to be used by other non-developers, if my user is using Pro3.3 version, I can only install Python third-party libraries in the Pro3.3 default Python environment.&lt;/P&gt;&lt;P&gt;So I have to think that Pro3.3 has taken a step back in terms of installing Python third-party libraries. This is because it cannot import Python third-party libraries in "\AppData\Roaming\Python\Python311\site-packages", even though this Python third-party library is installed by itself via pip. I even suspect it's a bug.&lt;/P&gt;&lt;P&gt;If my ideas are biased, or if you have a better idea, please do let me know. thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 02:11:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1606313#M95012</guid>
      <dc:creator>圈圈</dc:creator>
      <dc:date>2025-04-16T02:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro3.3 cannot import third-party libraries located at "\AppData\Roaming\Python\Python311\site-packages"</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1606317#M95013</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yes, the Python built-in window import problem can be solved by adding the destination path to sys.path, but it does not work after restarting ArcGIS.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 02:28:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1606317#M95013</guid>
      <dc:creator>圈圈</dc:creator>
      <dc:date>2025-04-16T02:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro3.3 cannot import third-party libraries located at "\AppData\Roaming\Python\Python311\site-packages"</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1606319#M95014</link>
      <description>&lt;P&gt;&lt;SPAN&gt;For scripting tools, I have to write sys.path into the Python script for the tools to work properly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 02:34:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro3-3-cannot-import-third-party-libraries/m-p/1606319#M95014</guid>
      <dc:creator>圈圈</dc:creator>
      <dc:date>2025-04-16T02:34:00Z</dc:date>
    </item>
  </channel>
</rss>

