在python使用Arcgis Pro的arcpy和PyQt5写了一个工具想要打包成exe运行,使用的是pyinstaller打包
打包运行exe后,弹出命令提示符出现以下提示:
arcpy expects to run inside a Conda environment, which ArcGIS
uses to manage the installation of Python.
You can access this environment by launching Python from the links inside the
"ArcGIS > ArcGIS Pro" Start Menu Group:
"Python Interactive Terminal" starts a Python session.
"Python Command Prompt" opens a Command Prompt window initialized with Conda.
Or by running the proenv.bat file in the terminal:
C:\> D:\Program Files\ArcGis\pro\bin\python\scripts\proenv.bat
__init__.py:71: RuntimeWarning: arcpy expects to run within a Conda environment
我需要进行什么操作才能正常运行打包后的exe?