How do you get Python 3.4 to see ArcGIS Pro arcpy?

12631
11
Jump to solution
10-30-2014 08:07 AM
curtvprice
MVP Esteemed Contributor

I am trying to access ArcGIS Pro's flavor of arcpy. I installed the 3.4.0 distributed with Pro (beta 5, and pr), open IDLE fine, but... arcpy is not automatically in the sys.path.

Is there a .pth file I am missing?

Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 bit (AMD64)] on win32

Type "copyright", "credits" or "license()" for more information.

>>> import arcpy

Traceback (most recent call last):

  File "<pyshell#0>", line 1, in <module>

    import arcpy

ImportError: No module named 'arcpy'

>>> import sys

>>> print("\n".join(sys.path))

C:\Windows\system32

C:\Python34\Lib\idlelib

C:\Python34\python34.zip

C:\Python34\DLLs

C:\Python34\lib

C:\Python34

C:\Python34\lib\site-packages

>>>

Tags (3)
11 Replies
JohnMitchell_III
Deactivated User

Maybe simply an update for 1.3 but the site-packages pro.pth file has been renamed to ArcGISPro.pth in the same location.

Happy GISsing!

curtvprice
MVP Esteemed Contributor

Yes and the new Conda setup makes this whole deal much easier!

0 Kudos