首页 > 解决方案 > 如何在本地驱动器中安装 python3?

问题描述

我正在尝试在 Windows 10 上安装 PX4 固件并使用 Cygwin 工具链构建它。但是,当我使用该make命令构建程序时,它说不python3可用。我已经安装了 Python 3.8,它显示在 Git bash 中,为什么它没有显示在控制台 bash 中?

错误:-

-- Could NOT find PythonInterp: Found unsuitable version "2.7.14", but required is at least "3" (found /usr/bin/python)
CMake Error at CMakeLists.txt:287 (message):
  Python 3 not found.  Please install Python 3:

      Ubuntu: sudo apt install python3 python3-dev python3-pip
      macOS: brew install python


-- Configuring incomplete, errors occurred!
See also "/cygdrive/c/PX4/home/Firmware/build/px4_sitl_default/CMakeFiles/CMakeOutput.log".
Error: /cygdrive/c/PX4/home/Firmware/build/px4_sitl_default is not a directory
make: *** [Makefile:226: px4_sitl] Error 1

注意 - 显示 python3.8 的环境变量中的路径是正确的

标签: python-3.xcygwindronepx4

解决方案


推荐阅读