# 前提条件

Source: [https://docs.qualcomm.com/doc/80-70020-50SC/topic/prerequisites-for-python-sample-applications.html](https://docs.qualcomm.com/doc/80-70020-50SC/topic/prerequisites-for-python-sample-applications.html)

在运行基于 Python 的示例应用程序之前，请完成这些前提条件。

- 要在设备上创建目录，请在 shell 中运行以下命令：

        mount -o remount,rw /Copy to clipboard

        mkdir -p /etc/media/Copy to clipboard
- 确保模型和标签文件在设备上可用。相关说明，可参见[下载模型和标签文件](https://docs.qualcomm.com/doc/80-70020-50SC/topic/download-model-and-label-files.html)。
- 根据正在使用的应用程序重命名模型和标签文件。
- 激活显示器：

        export XDG_RUNTIME_DIR=/dev/socket/weston && export WAYLAND_DISPLAY=wayland-1Copy to clipboard
- 将文件从主机推送到目标设备：

        scp <video.mp4> root@<IP address of target device>:/etc/media/Copy to clipboard
- 要激活摄像头，请在目标设备 shell 中运行 `setenforce 0`。

如果您遇到摄像头或显示器问题，请参阅[摄像头故障排查](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-17/troubleshooting.html)和[显示器故障排查](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-18/debug.html)。

## 另可参见

- [摄像头指南](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-17/camera-overview.html)
- [视频指南](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-20/overview.html)
- [音频指南](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-16/overview.html)

**Parent Topic:** [Python 应用程序](https://docs.qualcomm.com/doc/80-70020-50SC/topic/python-sample-applications.html)

Last Published: Jul 23, 2025

[Previous Topic
Python 应用程序](https://docs.qualcomm.com/bundle/publicresource/80-70020-50SC/topics/python-sample-applications.md) [Next Topic
摄像头编码](https://docs.qualcomm.com/bundle/publicresource/80-70020-50SC/topics/camera-encode.md)