尝试设置64位python以与spyder和arcpy一起使用。 我已经为python 2.7安装了anaconda,并且具有64位版本,当我在anaconda安装文件夹中运行python.exe并运行
时,import platform
platform.architecture()[0]
它显示64位,但是当我运行spyder并将python解释器选项指向该python.exe并运行上述命令时,它显示为32位。
anaconda安装中python.exe文件的Sys.path是:
['','C:\ Users \ CHOK \ AppData \ Local \ Continuum \ anaconda64 \ python27.zip','C:\ Users \ CHOK \ AppData \ Local \ Continuum \ anaconda64 \ DLLs','C: \ Users \ CHOK \ AppData \ Local \ Continuum \ anaconda64 \ lib','C:\ Users \ CHOK \ AppData \ Local \ Continuum \ anaconda64 \ lib \ plat-win','C:\ Users \ CHOK \ AppData \ Local \ Continuum \ anaconda64 \ lib \ lib-tk','C:\ Users \ CHOK \ AppData \ Local \ Continuum \ anaconda64','C:\ Users \ CHOK \ AppData \ Local \ Continuum \ anaconda64 \ lib \ site-packages ','C:\ Users \ CHOK \ AppData \ Local \ Continuum \ anaconda64 \ lib \ site-packages \ win32','C:\ Users \ CHOK \ AppData \ Local \ Continuum \ anaconda64 \ lib \ site-packages \ win32 \ lib','C:\ Users \ CHOK \ AppData \ Local \ Continuum \ anaconda64 \ lib \ site-packages \ Pythonwin']
和spyder的sys.path:
['', 'C:\ Windows \ SYSTEM32 \ python27.zip', 'C:\ Python27 \ ArcGIS10.5 \ DLLs', 'C:\ Python27 \ ArcGIS10.5 \ lib', 'C:\ Python27 \ ArcGIS10.5 \ lib \ plat-win', 'C:\ Python27 \ ArcGIS10.5 \ lib \ lib-tk', 'C:\ Python27 \ ArcGIS10.5', 'C:\ Python27 \ ArcGIS10.5 \ lib \ site-packages', 'C:\ Program Files(x86)\ ArcGIS \ Desktop10.5 \ bin', 'C:\ Program Files(x86)\ ArcGIS \ Desktop10.5 \ ArcPy', 'C:\ Program Files(x86)\ ArcGIS \ Desktop10.5 \ ArcToolBox \ Scripts', 'C:\ Python27 \ ArcGIS10.5 \ lib \ site-packages \ IPython \ extensions', 'C:\ Users \ CHOK \ .ipython']
如何使spyder使用与Anaconda相同的路径?