# 前提条件

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

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

- 在目标设备的终端中，在 shell 中运行以下命令以创建目录：

        mount -o remount,rw /usrCopy to clipboard

        mkdir -p /etc/media/Copy to clipboard
- 确保模型和标签文件在设备上可用。相关说明，可参见[前提条件](https://docs.qualcomm.com/doc/80-70022-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-70022-17/troubleshooting.html)和[显示问题排查](https://docs.qualcomm.com/bundle/publicresource/topics/80-70022-18/debug.html)。

## 另可参见

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

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

Last Published: Nov 05, 2025

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