- Make sure you have ArcGIS Desktop Background Geoprocessing (64-bit) and the 64-bit version of FME installed;
- In FME, go to Tools > FME Options... > Translation;
- Set the Preferred Python Interpreter to C:\Windows\System32\Python32.dll.
After that you can just type in import arcpy in your Python code:
See also https://knowledge.safe.com/articles/814/choosing-a-different-python-interpreter-installati.html and https://knowledge.safe.com/articles/29799/importing-arcpy-troubleshooting-ideas.html
(Note: this solution may work for me because I have ArcGIS Pro installed.)
No comments:
Post a Comment