Could NOT find PythonInterp:Found unsuitable version "2.7.17", but required is at least "3" (found /usr/bin/python2)

时间: 2024-05-09 19:07:24 浏览: 17
这个错误提示表明你需要安装 Python3 或者将系统中默认的 Python 版本切换为 Python3。 你可以通过以下命令安装 Python3: - Debian/Ubuntu:sudo apt-get install python3 - CentOS/Fedora:sudo yum install python3 如果你已经安装了 Python3,但是系统默认使用的是 Python2,可以通过以下命令将默认 Python 版本切换为 Python3: - Debian/Ubuntu:sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1 - CentOS/Fedora:sudo alternatives --set python /usr/bin/python3 如果你使用的是其他操作系统,可以参考对应操作系统的文档进行操作。
相关问题

Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2" (found /home/miniconda3/bin/python3.8)

这个错误通常是由于 CMake 找到了不兼容的 Python 版本导致的。您需要确保安装了至少 Python 2 版本,并将其添加到您的系统路径中。 如果您已经安装了正确版本的 Python,但仍然遇到此错误,则可能是由于 CMake 的默认搜索路径不包含您的 Python 安装路径。在这种情况下,您可以手动指定 Python 的路径。您可以使用以下命令: ``` cmake -DPYTHON_EXECUTABLE=/path/to/python .. ``` 请将 `/path/to/python` 替换为您 Python 解释器的实际路径。然后重新运行 CMake,构建您的项目即可。

Could NOT find TBB: Found unsuitable version ".", but required is at least "4.4" (found /usr/include, found components: tbb tbbmalloc) -- Could NOT find MKL (missing: MKL_INCLUDE_DIR MKL_LIBRARIES)

这似乎是你在编译某个程序时遇到的错误。这个错误消息显示你缺少了 TBB 和 MKL 库,而且你当前安装的 TBB 版本不够新。你需要下载并安装 TBB 4.4 或更高版本,以及 MKL 库。如果你使用的是 Linux 操作系统,可以使用包管理器安装这些库,例如在 Ubuntu 中,你可以使用以下命令安装它们: ``` sudo apt-get install libtbb-dev intel-mkl-64bit-<version> ``` 其中 `<version>` 是你要安装的 MKL 库的版本号。如果你使用的是其他操作系统,请查看相应的文档以了解如何安装这些库。

相关推荐

Traceback (most recent call last): File "/usr/local/python3/bin/pyinstaller", line 8, in <module> sys.exit(_console_script_run()) File "/usr/local/python3/lib/python3.7/site-packages/PyInstaller/__main__.py", line 194, in _console_script_run run() File "/usr/local/python3/lib/python3.7/site-packages/PyInstaller/__main__.py", line 180, in run run_build(pyi_config, spec_file, **vars(args)) File "/usr/local/python3/lib/python3.7/site-packages/PyInstaller/__main__.py", line 61, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "/usr/local/python3/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 1019, in main build(specfile, distpath, workpath, clean_build) File "/usr/local/python3/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 944, in build exec(code, spec_namespace) File "/root/test/2.spec", line 20, in <module> noarchive=False, File "/usr/local/python3/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 429, in __init__ self.__postinit__() File "/usr/local/python3/lib/python3.7/site-packages/PyInstaller/building/datastruct.py", line 184, in __postinit__ self.assemble() File "/usr/local/python3/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 764, in assemble self._check_python_library(self.binaries) File "/usr/local/python3/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 834, in _check_python_library python_lib = bindepend.get_python_library_path() File "/usr/local/python3/lib/python3.7/site-packages/PyInstaller/depend/bindepend.py", line 1018, in get_python_library_path raise IOError(msg) OSError: Python library not found: libpython3.7mu.so.1.0, libpython3.7.so.1.0, libpython3.7m.so, libpython3.7.so, libpython3.7m.so.1.0 This means your Python installation does not come with proper shared library files. This usually happens due to missing development package, or unsuitable build parameters of the Python installation. * On Debian/Ubuntu, you need to install Python development packages: * apt-get install python3-dev * apt-get install python-dev * If you are building Python by yourself, rebuild with --enable-shared (or, --enable-framework on macOS).

Please revise the paper:Accurate determination of bathymetric data in the shallow water zone over time and space is of increasing significance for navigation safety, monitoring of sea-level uplift, coastal areas management, and marine transportation. Satellite-derived bathymetry (SDB) is widely accepted as an effective alternative to conventional acoustics measurements over coastal areas with high spatial and temporal resolution combined with extensive repetitive coverage. Numerous empirical SDB approaches in previous works are unsuitable for precision bathymetry mapping in various scenarios, owing to the assumption of homogeneous bottom over the whole region, as well as the limitations of constructing global mapping relationships between water depth and blue-green reflectance takes no account of various confounding factors of radiance attenuation such as turbidity. To address the assumption failure of uniform bottom conditions and imperfect consideration of influence factors on the performance of the SDB model, this work proposes a bottom-type adaptive-based SDB approach (BA-SDB) to obtain accurate depth estimation over different sediments. The bottom type can be adaptively segmented by clustering based on bottom reflectance. For each sediment category, a PSO-LightGBM algorithm for depth derivation considering multiple influencing factors is driven to adaptively select the optimal influence factors and model parameters simultaneously. Water turbidity features beyond the traditional impact factors are incorporated in these regression models. Compared with log-ratio, multi-band and classical machine learning methods, the new approach produced the most accurate results with RMSE value is 0.85 m, in terms of different sediments and water depths combined with in-situ observations of airborne laser bathymetry and multi-beam echo sounder.

最新推荐

recommend-type

基于EasyX的贪吃蛇小游戏 - C语言

基于EasyX的贪吃蛇小游戏 - C语言
recommend-type

Energy Core ECP5705-V01.pdf

Energy Core ECP5705-V01.pdf
recommend-type

matlabGUI学生成绩管理系统pdf

建立基于图形用户界面GUI的学生成绩管理系统,该系统能够实现学生成绩信息的增加、删除、查询(查询某门课所有学生的成绩并显示排名,查询某个学生的各科成绩并显示排名)、课程成绩统计最高分、最低分、平均分、方差、并显示相应的排名;绘制柱状图、条形图、饼状图、正太分布曲线等功能。 通过本实验使学生掌握图形用户界面GUI的操作和设计流程,并通过编写回调函数巩固前期的知识。
recommend-type

高职教育品牌专业申报汇总表.doc

高职教育品牌专业申报汇总表.doc
recommend-type

游戏运营数据后台需求表.docx

游戏运营数据后台需求表.docx
recommend-type

zigbee-cluster-library-specification

最新的zigbee-cluster-library-specification说明文档。
recommend-type

管理建模和仿真的文件

管理Boualem Benatallah引用此版本:布阿利姆·贝纳塔拉。管理建模和仿真。约瑟夫-傅立叶大学-格勒诺布尔第一大学,1996年。法语。NNT:电话:00345357HAL ID:电话:00345357https://theses.hal.science/tel-003453572008年12月9日提交HAL是一个多学科的开放存取档案馆,用于存放和传播科学研究论文,无论它们是否被公开。论文可以来自法国或国外的教学和研究机构,也可以来自公共或私人研究中心。L’archive ouverte pluridisciplinaire
recommend-type

MATLAB遗传算法自动优化指南:解放算法调优,提升效率

![MATLAB遗传算法自动优化指南:解放算法调优,提升效率](https://help-static-aliyun-doc.aliyuncs.com/assets/img/zh-CN/8487939061/p208348.png) # 1. MATLAB遗传算法概述** 遗传算法是一种受生物进化启发的优化算法,它模拟了自然选择和遗传的过程。在MATLAB中,遗传算法工具箱提供了丰富的函数和类,用于创建和运行遗传算法。 **1.1 遗传算法的基本原理** 遗传算法的工作原理如下: - **初始化:**创建由随机个体组成的初始种群。 - **评估:**根据目标函数计算每个个体的适应度。 -
recommend-type

failed to register layer: ApplyLayer exit status 1 stdout: stderr: archive/tar: invalid tar header

很抱歉听到这个问题。这个错误通常是由于Docker镜像损坏或Docker存储库中缺少所需的图层引起的。您可以尝试以下几种方法来解决这个问题: 1. 清理Docker镜像和容器:使用命令“docker system prune”清理不再使用的Docker对象。 2. 检查Docker存储库:确保您正在使用可靠的Docker存储库,并检查是否存在所有必需的图层。 3. 重新下载Docker镜像:如果您确定问题是由于损坏的Docker镜像引起的,则可以尝试重新下载Docker镜像。 4. 更新Docker版本:如果您使用的是旧版Docker,则可能会出现此问题。尝试更新到最新版本的Docke
recommend-type

JSBSim Reference Manual

JSBSim参考手册,其中包含JSBSim简介,JSBSim配置文件xml的编写语法,编程手册以及一些应用实例等。其中有部分内容还没有写完,估计有生之年很难看到完整版了,但是内容还是很有参考价值的。