Question:
Environment: 64-bit andconda(Spyder) and IPython console Information is:
1. import GDAL Error:
Solving Reference Link:
https://stackoverflow.com/questions/52565731/how-to-solve-import-gdal-error-in-64-bit-anaconda
https://stackoverflow.com/questions/52565731/how-to-solve-import-gdal-error-in-64-bit-anaconda
Solving Steps:
To type the following command sentence in Anaconda Prompt.
conda install -c conda-forge georasters
2. import arcpy Error:
Two Solving Reference Link:
① https://gis.stackexchange.com/questions/81066/installing-64-bit-geoprocessing-of-arcgis-for-desktop
Solving Steps:
Firstly, as @crafty762 said in hyperlink ①, I have to install ArcGIS for Desktop Background Geoprocessing(64-bit).
Then look for hyperlink②, there are many methods to solve the problem. In the end, I solved the problem using @PolyGeo 's answer.
Then look for hyperlink②, there are many methods to solve the problem. In the end, I solved the problem using @PolyGeo 's answer.
In the bottom of Importing ArcPy is:
In my PC, I investigated to C:\Python27\ArcGISx6410.2\Lib\site-packages, which is the installing directory of ArcGIS for Desktop Background Geoprocessing(64-bit), there is a similar file named DTBGGP64.pth then opened it in Notepad++ :
Until then, I just realized the error is wrong first directory importing into PYTHONPATH manager, it should be the bin64 folder rather than bin folder:
Finally, I added these three directories to PYTHONPATH manager in Spyder, there is no error:
Happy Night!
Oct. 2,2018 at midnight
没有评论:
发表评论