一般划水斯卡蒂 2024-07-31 16:53 采纳率: 72.7%
浏览 6
已结题

python脚本打包成exe后无法运行

在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?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 8月8日
    • 创建了问题 7月31日

    悬赏问题

    • ¥15 Hadoop的部署与安装的一些疑问
    • ¥15 短剧的sdk在哪里接入
    • ¥30 智能割草机自动化割草
    • ¥15 求:可不可以提供一些 在国内可以用,低代码不要太难 在电脑上可以下载的 制作app的软件
    • ¥60 找人回答kibana8.14.3二次集成开发,自定义插件ui导航栏如何设置
    • ¥15 fluke高精度万用表8845A型号测交流电压一直跳动,且去掉输入后显示不归零
    • ¥15 不同模型怎么用同一个shader
    • ¥15 安卓启动没有ais proxy与v4l2的log打印
    • ¥15 go怎么读取mdb文件里面的数据
    • ¥60 Matlab联合CRUISE仿真编译dll文件报错