python-3.x - 如何在本地驱动器中安装 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 的环境变量中的路径是正确的
解决方案
推荐阅读
- node.js - 使用来自嵌套嵌套数组的值的 MongoDB 更新(聚合管道)
- google-apps-script - 在谷歌表格中使用 onEdit(e) 自动将值添加到特定单元格
- asp.net-core - 可注入类需要在注入到其他类构造函数之前读取 http 标头
- oracle - 如何从 Oracle PL SQL 的过程中的(对象类型表)的输入参数中获取值?
- python - 为什么我不能引用顶级 Python 模块中的子模块?
- mongodb - Mongodb - executionStats executionTimeMillis 方式比每个阶段的 executionTimeMillisEstimate 的累积时间长
- c# - windows api消息是否仍然存在?
- javascript - Javascript 的奇怪 RegEx 请求
- gnuplot - 从图形的底部到顶部绘制一个正方形 gnuplot
- hackintosh - OpenCore - 戴尔 5577 - 无法让电池工作 Hackintosh