<?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: Setup Eclipse (PyDev) Virtual Environment: ArcPy? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371051#M29337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3355"&gt;Curtis Price&lt;/A&gt;​ , &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;I copied the following two Python &lt;STRONG&gt;pth&lt;/STRONG&gt; files:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ArcHydroTools.pth&lt;/LI&gt;&lt;LI&gt;DTBGGP64.pth&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;to the following directory:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;E:\Python\Venv\ArcPy64bit\Lib\site-packages&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to install the the specific versions of python packages required for ArcGIS:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Numpy (1.7.1)&lt;/LI&gt;&lt;LI&gt;Matplotlib (1.3.0)&lt;/LI&gt;&lt;LI&gt;xlrd (0.9.2)&lt;/LI&gt;&lt;LI&gt;xlwt (0.7.5)&lt;/LI&gt;&lt;LI&gt;Pyparsing (1.5.7)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;based on the &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/get-started/installation-guide/python-requirement.htm"&gt;python requirements&lt;/A&gt; for ArcGIS 10.3.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm unable to install Numpy (1.7.1) within my virtualenv via command line:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="206510" alt="Python_CMD_Numpy171_Install.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/206510_Python_CMD_Numpy171_Install.PNG" style="width: 620px; height: 316px;" /&gt;&lt;/P&gt;&lt;P&gt;Python: pip install numpy==1.7.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="206511" alt="Python_CMD_Numpy171_ErrorMessage.PNG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/206511_Python_CMD_Numpy171_ErrorMessage.PNG" style="width: 620px; height: 320px;" /&gt;&lt;/P&gt;&lt;P&gt;Python: Pip install numpy==1.7.1 error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I install numpy without specifying a version it works perfectly, no error messages. I tried downloading &lt;A href="https://pypi.python.org/pypi/numpy/1.7.1"&gt;numpy-1.7.1.win32-py2.7.exe&lt;/A&gt;​ but unfortunately you are unable to change the directory into which it will install. Any help to resolve the following will truly be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jun 2016 15:10:10 GMT</pubDate>
    <dc:creator>PeterWilson</dc:creator>
    <dc:date>2016-06-01T15:10:10Z</dc:date>
    <item>
      <title>Setup Eclipse (PyDev) Virtual Environment: ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371047#M29333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found the following two sites explaining how to setup Python Virtualenv for ArcGIS:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="http://grantherbert.blogspot.co.za/2016/01/arcgis-and-python-virtual-environments.html" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS and Virtual Environments part 1:&lt;/A&gt; ; &lt;A href="http://grantherbert.blogspot.co.za/2016/01/arcgis-and-python-virtual-environments_22.html" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS and Virtual Environments part 2:​&lt;/A&gt;​&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://my.usgs.gov/confluence/pages/viewpage.action?pageId=498008166" rel="nofollow noopener noreferrer" target="_blank"&gt;Calling arcpy from an external virtual Python environment:&lt;/A&gt;​&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've successfully created a virtual environment under my external drive:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;E:\Python\Venv\ArcPy64bit&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201723" alt="cmd_virtualenv.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/201723_cmd_virtualenv.png" style="width: 620px; height: 314px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I followed the second part of &lt;A href="http://grantherbert.blogspot.co.za/2016/01/arcgis-and-python-virtual-environments_22.html" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;SPAN style="text-decoration: underline;"&gt;ArcGIS and Virtual Environments part 2:&lt;/SPAN&gt;​&lt;/A&gt; as well as &lt;A href="https://my.usgs.gov/confluence/pages/viewpage.action?pageId=498008166" style="text-decoration: underline;" rel="nofollow noopener noreferrer" target="_blank"&gt;Calling arcpy from an external virtual Python environment:&lt;/A&gt;​ to create the Python Path file to the ArcPy and my ArcHydroTools is where the comes apart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As instructed I ran the following within my Python IDLE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import sys
sys.path&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201724" alt="idle_sys_path.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/201724_idle_sys_path.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then created the Python Path file from the list above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201749" alt="Python_Path_File.png" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/201749_Python_Path_File.png" style="width: 620px; height: 245px;" /&gt;&lt;/P&gt;&lt;P&gt;I copied the path file (&lt;STRONG&gt;arcpy64bit_paths.pth&lt;/STRONG&gt;) under the following directory:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;E:\Python\Venv\ArcPy64bit\Lib\site-packages&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG __jive_id="201750" alt="Python_Path_File_Directory.png" class="image-4 jive-image" src="https://community.esri.com/legacyfs/online/201750_Python_Path_File_Directory.png" style="width: 620px; height: 383px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I setup the Python Interpreter using the virtualenv within Eclipse the following paths are recognised:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201751" alt="Virtualenv_Python_Paths.png" class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/201751_Virtualenv_Python_Paths.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;ArcPy and ArcHydroTools not recognised:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201752" alt="Arcpy_ArcHydroTools_Not_Recognised.png" class="image-6 jive-image" src="https://community.esri.com/legacyfs/online/201752_Arcpy_ArcHydroTools_Not_Recognised.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I setup the Python Interpreter using the ArcGIS Python within Eclipse the following paths are recognised:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201753" alt="ArcGIS_Python_Paths.png" class="image-7 jive-image" src="https://community.esri.com/legacyfs/online/201753_ArcGIS_Python_Paths.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;ArcPy and ArcHydroTools are recognised:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201755" alt="ArcPy_ArcHydroTools_Recognised.png" class="image-8 jive-image" src="https://community.esri.com/legacyfs/online/201755_ArcPy_ArcHydroTools_Recognised.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help to resolve the following will be appreciated, as I really need to use virtualenv to manage my Python Environment due to different versions of packages required.&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;DIV class="column-center-outer"&gt;&lt;DIV class="column-center-inner"&gt;&lt;DIV class="main section" style="margin: 0 1em;"&gt;&lt;DIV class="Blog widget" data-version="1"&gt;&lt;DIV class="blog-posts hfeed"&gt;&lt;DIV class="date-outer"&gt;&lt;DIV class="date-posts"&gt;&lt;DIV class="post-outer"&gt;&lt;DIV class="post hentry uncustomized-post-template" style="margin: 0 0 45px;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371047#M29333</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2021-12-11T17:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Setup Eclipse (PyDev) Virtual Environment: ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371048#M29334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nothing in &lt;A href="https://community.esri.com/migrated-users/3355"&gt;Curtis Price&lt;/A&gt;​ blog?&amp;nbsp; &lt;A href="https://community.esri.com/migration-blogpost/1848"&gt;Curtis Price's Blog&lt;/A&gt; or maybe &lt;A href="https://community.esri.com/migrated-users/2177"&gt;V Stuart Foote&lt;/A&gt;​ might have some thoughts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 May 2016 23:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371048#M29334</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-22T23:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Setup Eclipse (PyDev) Virtual Environment: ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371049#M29335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's be clear first off: I know absolutely nothing about Eclipse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's really important to make sure the order of paths in sys.path is correct. I think you may be breaking this by include everything in your .pth file. You should&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Make sure the virtual environment is compatible with ArcGIS (esp python, numpy versions)&lt;/P&gt;&lt;P&gt;2. Use Esri's .pth file that they put in the \Python27\Desktop10.2x64\site-packates folder. You should only have to copy that file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still are having problems, I suggest comparing the sys.path when launching Esri's 64 bit Python with what you are getting in your virtualenv. The order matters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 04:23:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371049#M29335</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2016-05-23T04:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setup Eclipse (PyDev) Virtual Environment: ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371050#M29336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curtis&lt;/P&gt;&lt;P&gt;Thanks for the following. I'm currently reading up on sys.path to better understand how it works as well as virtualenv\virtualenvwrapper. I'll post my workflow once I've got it working as I'm also going to be using GitHub for version management of my code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 08:47:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371050#M29336</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2016-05-24T08:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setup Eclipse (PyDev) Virtual Environment: ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371051#M29337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3355"&gt;Curtis Price&lt;/A&gt;​ , &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;I copied the following two Python &lt;STRONG&gt;pth&lt;/STRONG&gt; files:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ArcHydroTools.pth&lt;/LI&gt;&lt;LI&gt;DTBGGP64.pth&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;to the following directory:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;E:\Python\Venv\ArcPy64bit\Lib\site-packages&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to install the the specific versions of python packages required for ArcGIS:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Numpy (1.7.1)&lt;/LI&gt;&lt;LI&gt;Matplotlib (1.3.0)&lt;/LI&gt;&lt;LI&gt;xlrd (0.9.2)&lt;/LI&gt;&lt;LI&gt;xlwt (0.7.5)&lt;/LI&gt;&lt;LI&gt;Pyparsing (1.5.7)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;based on the &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/get-started/installation-guide/python-requirement.htm"&gt;python requirements&lt;/A&gt; for ArcGIS 10.3.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm unable to install Numpy (1.7.1) within my virtualenv via command line:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="206510" alt="Python_CMD_Numpy171_Install.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/206510_Python_CMD_Numpy171_Install.PNG" style="width: 620px; height: 316px;" /&gt;&lt;/P&gt;&lt;P&gt;Python: pip install numpy==1.7.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="206511" alt="Python_CMD_Numpy171_ErrorMessage.PNG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/206511_Python_CMD_Numpy171_ErrorMessage.PNG" style="width: 620px; height: 320px;" /&gt;&lt;/P&gt;&lt;P&gt;Python: Pip install numpy==1.7.1 error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I install numpy without specifying a version it works perfectly, no error messages. I tried downloading &lt;A href="https://pypi.python.org/pypi/numpy/1.7.1"&gt;numpy-1.7.1.win32-py2.7.exe&lt;/A&gt;​ but unfortunately you are unable to change the directory into which it will install. Any help to resolve the following will truly be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 15:10:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371051#M29337</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2016-06-01T15:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Setup Eclipse (PyDev) Virtual Environment: ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371052#M29338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;Sorry I can't help, I have been using at least&lt;/P&gt;&lt;P&gt;python 3.4.x, numpy 1.9.x and scipy 0.16.x for quite a while even when python 2.7.x was the only show in town (I think back to arc 10.1 or so).&lt;/P&gt;&lt;P&gt;I have no need for virtual environments since I just run 3 machines all using different configurations... I find it easier to keep track of stuff than remembering what I booted up on &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 15:37:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371052#M29338</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-06-01T15:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Setup Eclipse (PyDev) Virtual Environment: ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371053#M29339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have never messed with virtualenv - I highly recommend using anaconda instead as you tell it what you want and it finds all compatible dependencies, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;conda create -n arc1022 python=2.7.5 numpy=1.7.1 matplotlib=1.3&amp;nbsp; pandas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will then create a virtual environment that will work with arcpy for Arc 10.2.2 for you. There are a LOT of dependencies in there that I couldn't imagine being able to keep track of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just heard for sure that the plans are to ship Anaconda will be shipped with ArcGIS Pro 1.3. This is really great news.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 21:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setup-eclipse-pydev-virtual-environment-arcpy/m-p/371053#M29339</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2016-06-02T21:55:15Z</dc:date>
    </item>
  </channel>
</rss>

