# PythonBasicTest **Repository Path**: xfan1024/python-basic-test ## Basic Information - **Project Name**: PythonBasicTest - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-16 - **Last Updated**: 2025-12-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # JAVA-BASIC-TEST 在HarmonyOS应用中集成Python环境 ## 依赖准备 1. 复制 `python312.hnp/python-wheel-3.12/include` 到 `entry/src/main/cpp/thirdparty/include` 2. 复制 `python312.hnp/python-wheel-3.12/lib` 到 `entry/libs/arm64-v8a` 3. 复制 `other/site-packages` 到 `entry/libs/arm64-v8a/python3.12/site-packages` 4. 移动 `entry/libs/arm64-v8a/python3.12` 到 `entry/libs/arm64-v8a/Python/lib/python3.12` 5. 可以考虑只保留`.pyc`文件或者`.py`文件,并裁剪标准库之外的三方库,提升构建和安装速度 ## 构建项目 采用 DevEco 6.0.1 构建 ## 启动调试 1. 启动应用,分别点击`init_log`和`Script Test`按钮 2. 在`Documents`目录下查看`stderr-.log`文件