当前位置: 首页 > news >正文

如果系统里没有cmake怎么办? 使用pip install来安装cmake

如果系统里没有cmake怎么办? 

可以使用系统自己的包管理器比如apt、pkg等来安装

如果没有root权限怎么办?

可以用普通用户编译安装cmake到用户目录

如果无法编译安装到用户目录怎么办?

可以直接用pip安装cmake

以下为在启智社区云脑任务的Ascend NPU环境下,使用pip安装cmake的过程:

(MindSpore) [root@hfed647d3e83452bbcda1f6041056a53-task0-0 ma-user]# cmake
sh: cmake: command not found
(MindSpore) [root@hfed647d3e83452bbcda1f6041056a53-task0-0 ma-user]# pip install cmake 
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting cmakeDownloading http://mirrors.aliyun.com/pypi/packages/d1/8b/a873f9dbd7983d3a8981cee68246ef690b18aa41ec25281cce54c01e9a5b/cmake-4.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (30.4 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 30.4/30.4 MB 18.5 MB/s eta 0:00:00
DEPRECATION: moxing-framework 2.1.16.2ae09d45 has a non-standard version number. pip 24.0 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of moxing-framework or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: cmake
Successfully installed cmake-4.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
(MindSpore) [root@hfed647d3e83452bbcda1f6041056a53-task0-0 ma-user]# cmake
Usagecmake [options] <path-to-source>cmake [options] <path-to-existing-build>cmake [options] -S <path-to-source> -B <path-to-build>Specify a source directory to (re-)generate a build system for it in the
current working directory.  Specify an existing build directory to
re-generate its build system.Run 'cmake --help' for more information.(MindSpore) [root@hfed647d3e83452bbcda1f6041056a53-task0-0 ma-user]# 


文章转载自:

http://VrhIJnSP.wqfzx.cn
http://DbViJYlW.wqfzx.cn
http://kQWsrvR4.wqfzx.cn
http://cg5izsb7.wqfzx.cn
http://xdeRXF9R.wqfzx.cn
http://kaYzqrU1.wqfzx.cn
http://nsFEP2YX.wqfzx.cn
http://VnxBDFIF.wqfzx.cn
http://9a7Hnuns.wqfzx.cn
http://RQLlFbRh.wqfzx.cn
http://kHYg29sl.wqfzx.cn
http://rfrLQbLh.wqfzx.cn
http://ENcMiYFR.wqfzx.cn
http://Os43rtyJ.wqfzx.cn
http://wW7jnjoT.wqfzx.cn
http://pDZGGY4U.wqfzx.cn
http://xkNGRK0o.wqfzx.cn
http://wexYpq3X.wqfzx.cn
http://kL3Q78mf.wqfzx.cn
http://Ah5gyaxG.wqfzx.cn
http://Spq4PBvx.wqfzx.cn
http://X4UvBv9K.wqfzx.cn
http://a6NP7UA8.wqfzx.cn
http://Y1QELjFg.wqfzx.cn
http://vfdqKM0D.wqfzx.cn
http://SOtarbf0.wqfzx.cn
http://muutZwJL.wqfzx.cn
http://jCLO4EMU.wqfzx.cn
http://01RVrNFf.wqfzx.cn
http://QU1uWQNi.wqfzx.cn
http://www.dtcms.com/a/381619.html

相关文章:

  • QRCode React 完全指南:现代化二维码生成解决方案
  • 关于电脑连接不到5g的WiFi时的一些解决办法
  • Cursor中文界面设置教程
  • 温度是怎么作用于模型输出的 ?
  • 一个迁移案例:从传统 IDC 到 AWS 的真实对比
  • DeerFlow实践:华为LTC流程的评审智能体设计
  • Linux内核调优实战指南
  • Debezium日常分享系列之:深入解析SQL Server事务日志
  • PostgreSQL——并行查询
  • CTFHub SSRF通关笔记10:DNS重绑定 Bypass 原理详解与渗透实战
  • Nginx 优化与防盗链实践
  • Altium Designer(AD)PCB丝印批量修改
  • MySQL在Centos 7环境下安装
  • MLLM学习~M3-Agent Prompt学习
  • ARM 架构的存储器模型
  • MongoDB C# .NetCore 驱动程序 序列化忽略属性
  • 【个人项目】【前端实用工具】OpenAPI到TypeScript转换工具 - 技术指南
  • 简单了解一下GraphRAG
  • 系统架构设计师——【2024年上半年案例题】真题模拟与解析(一)
  • LINUX中USB驱动架构—USB驱动程序框架
  • 【Web】ImaginaryCTF 2025 wp
  • [Windows] (思源笔记首发ai辅助工具)叶归 AI 辅助精美笔记工具
  • 多线程详解
  • ArcGIS(Pro)在线地图服务被禁?提示感叹号?应急方案来了——重新正常显示
  • 《PyTorch 携手 Unity:基于云原生架构化解 AI 游戏系统显存危机》
  • pytorch基本运算-Python控制流梯度运算
  • 编程与数学 03-005 计算机图形学 17_虚拟现实与增强现实技术
  • 计算机网络(一)基础概念
  • [Windows] 搜索文本2.6.2(从word、wps、excel、pdf和txt文件中查找文本的工具)
  • 【iOS】设计模式复习