Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Hi @Xhao Xu

    Code:
    c:\Python27\ArcGIS10.8>python
    Python 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:19:08) [MSC v.1500 32 bit (Intel)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import platform
    >>> platform.architecture()
    ('32bit', 'WindowsPE')
    >>>
    Richard

    Comment


    • #17
      Hi Richard Palmer-Jones,

      The output suggests that you are using a 32bit Python. It won't loaded in a 64bit Stata. You need to install a 64bit Python to get it work.

      Comment


      • #18
        Thanks Zhao

        Hmm, I see.

        It seems that ArcMap 10.8 indeed installed Python 32 bit, but it also installed 64 bit at the same time in C:\Python27\ArcGISx6410.8

        I'm not sure why Stata goes first to c:\Python27\ArcGIS10.8>python

        I have been getting round this by using setting exec to Python 3 which Iwas installed with ArcMap Pro (2.5?), but I occasionally forget and Stata then crashes when I try to run a python command.

        I'll see if I can make sure I set exec to C:\Python27\ArcGISx6410.8 or maybe put in my "profile.do" if I want to use python 2.7.

        Thanks for your help

        Richard



        Comment

        Working...
        X