AnsweredAssumed Answered

Setup Eclipse (PyDev) Virtual Environment: ArcPy?

Question asked by Playa on May 22, 2016
Latest reply on Jun 2, 2016 by curtvprice

I have found the following two sites explaining how to setup Python Virtualenv for ArcGIS:

  1. ArcGIS and Virtual Environments part 1: ; ArcGIS and Virtual Environments part 2:
  2. Calling arcpy from an external virtual Python environment:

 

I've successfully created a virtual environment under my external drive:

  • E:\Python\Venv\ArcPy64bit

 

cmd_virtualenv.png

 

When I followed the second part of ArcGIS and Virtual Environments part 2: as well as Calling arcpy from an external virtual Python environment: to create the Python Path file to the ArcPy and my ArcHydroTools is where the comes apart.

 

As instructed I ran the following within my Python IDLE:

 

import sys
sys.path

 

idle_sys_path.png

 

I then created the Python Path file from the list above:

 

Python_Path_File.png

I copied the path file (arcpy64bit_paths.pth) under the following directory:

  • E:\Python\Venv\ArcPy64bit\Lib\site-packages

Python_Path_File_Directory.png

 

When I setup the Python Interpreter using the virtualenv within Eclipse the following paths are recognised:

 

Virtualenv_Python_Paths.png

ArcPy and ArcHydroTools not recognised:

 

Arcpy_ArcHydroTools_Not_Recognised.png

 

 

When I setup the Python Interpreter using the ArcGIS Python within Eclipse the following paths are recognised:

 

ArcGIS_Python_Paths.png

ArcPy and ArcHydroTools are recognised:

 

ArcPy_ArcHydroTools_Recognised.png

 

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.

 

 

 

 

 

 

Outcomes