running setup.py install for minkowskiengine ... error error: legacy-install

时间: 2023-09-17 15:01:37 浏览: 75
在运行 `setup.py install` 安装 Minkowski Engine 时出现 `error: legacy-install` 错误。这个错误通常是由于旧版本的安装方式导致的。解决此问题的方法是使用最新的安装方式。 首先,确保你的 Python 版本是 3.6 及以上,并且已经安装了所需的依赖项,如 CMake 和 CUDA。 然后,按照以下步骤进行安装: 1. 首先,从 Minkowski Engine 的官方 GitHub 页面(https://github.com/NVIDIA/MinkowskiEngine)下载最新版本的源代码。 2. 解压下载的源代码包,并进入源代码的根目录。 3. 打开终端,切换到源代码的根目录,并执行以下命令安装 Minkowski Engine: ``` python setup.py install ``` 如果上述方法仍然出现 `error: legacy-install` 错误,可以尝试其他解决方案: 1. 使用管理员权限运行终端(或命令提示符),然后再次运行 `python setup.py install` 命令。 2. 检查 Python 环境变量是否正确配置,并确保路径中包含了正确的 Python 版本。 3.检查是否有其他相互冲突的 Python 包已经安装,可以使用虚拟环境(virtual environment)进行安装。 如果以上解决方案仍然无效,可以考虑在 Minkowski Engine 的 GitHub 页面上提交错误报告,以获取更多帮助和支持。
相关问题

解释一下: Collecting sklearn Downloading sklearn-0.0.post7.tar.gz (3.6 kB) Preparing metadata (setup.py) ... done Using legacy 'setup.py install' for sklearn, since package 'wheel' is not installed. Installing collected packages: sklearn Running setup.py install for sklearn ... done Successfully installed sklearn-0.0.post7

这段输出是在执行`pip install sklearn`命令时的安装过程。让我逐行解释输出的含义: 1. `Collecting sklearn`: 表示正在收集(下载)sklearn库。 2. `Downloading sklearn-0.0.post7.tar.gz (3.6 kB)`: 下载sklearn库的压缩包文件,大小为3.6 kB。 3. `Preparing metadata (setup.py) ... done`: 准备元数据,即将开始安装。 4. `Using legacy 'setup.py install' for sklearn, since package 'wheel' is not installed.`: 由于没有安装`wheel`包,所以使用旧的方式`setup.py install`进行安装。 5. `Installing collected packages: sklearn`: 开始安装收集到的sklearn包。 6. `Running setup.py install for sklearn ... done`: 运行`setup.py`文件中的安装代码,并成功完成安装。 7. `Successfully installed sklearn-0.0.post7`: 安装成功,并显示安装的版本号。 这段输出表示sklearn库已经成功下载并安装到Python环境中。你现在可以在你的代码中导入和使用sklearn库了。

Preparing metadata (setup.py) ... done Building wheels for collected packages: dlib Building wheel for dlib (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [7 lines of output] running bdist_wheel running build running build_py running build_ext ERROR: CMake must be installed to build dlib [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for dlib Running setup.py clean for dlib Failed to build dlib Installing collected packages: dlib Running setup.py install for dlib ... error error: subprocess-exited-with-error × Running setup.py install for dlib did not run successfully. │ exit code: 1 ╰─> [9 lines of output] running install D:\Anaconda3\Anaconda\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py running build_ext ERROR: CMake must be installed to build dlib [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> dlib note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

这个错误是因为缺少CMake,dlib需要使用CMake进行编译。您需要先安装CMake,然后再重新安装dlib库。以下是在Windows上安装CMake和dlib的步骤: 1. 下载CMake安装程序:您可以从CMake的官方网站 https://cmake.org/download/ 下载适合您的操作系统的CMake安装程序。 2. 安装CMake:运行下载的CMake安装程序,按照提示进行安装。 3. 安装dlib库:在命令行中输入以下命令来安装dlib库: ``` pip install dlib ``` 如果您已经安装了dlib库,可以使用以下命令卸载它: ``` pip uninstall dlib ``` 然后再重新安装dlib库: ``` pip install dlib ``` 如果您还遇到了其他问题,请参考dlib的文档或在dlib的GitHub页面上查找更多信息。

相关推荐

Building wheels for collected packages: cython_bbox Building wheel for cython_bbox (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [5 lines of output] running bdist_wheel running build running build_ext building 'cython_bbox' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cython_bbox Running setup.py clean for cython_bbox Failed to build cython_bbox Installing collected packages: cython_bbox Running setup.py install for cython_bbox ... error error: subprocess-exited-with-error × Running setup.py install for cython_bbox did not run successfully. │ exit code: 1 ╰─> [18 lines of output] running install D:\python\envs\yolov578\lib\site-packages\setuptools\_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running setup.py directly. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running build running build_ext building 'cython_bbox' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> cython_bbox note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

Collecting tensorflow-gpu Downloading tensorflow-gpu-2.12.0.tar.gz (2.6 kB) Preparing metadata (setup.py) ... done Collecting python_version>"3.7" Downloading python_version-0.0.2-py2.py3-none-any.whl (3.4 kB) Building wheels for collected packages: tensorflow-gpu Building wheel for tensorflow-gpu (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [18 lines of output] Traceback (most recent call last): File "<string>", line 2, in <module> File "", line 34, in <module> File "C:\Users\hzw2862612151\AppData\Local\Temp\pip-install-ksfqxluq\tensorflow-gpu_26b4be8966e04f88beecf8ba93d216a3\setup.py", line 37, in <module> raise Exception(TF_REMOVAL_WARNING) Exception: ========================================================= The "tensorflow-gpu" package has been removed! Please install "tensorflow" instead. Other than the name, the two packages have been identical since TensorFlow 2.1, or roughly since Sep 2019. For more information, see: pypi.org/project/tensorflow-gpu ========================================================= [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for tensorflow-gpu Running setup.py clean for tensorflow-gpu Failed to build tensorflow-gpu Installing collected packages: python_version, tensorflow-gpu Running setup.py install for tensorflow-gpu ... error error: subprocess-exited-with-error × Running setup.py install for tensorflow-gpu did not run successfully. │ exit code: 1 ╰─> [18 lines of output] Traceback (most recent call last): File "<string>", line 2, in <module> File "", line 34, in <module> File "C:\Users\hzw2862612151\AppData\Local\Temp\pip-install-ksfqxluq\tensorflow-gpu_26b4be8966e04f88beecf8ba93d216a3\setup.py", line 37, in <module> raise Exception(TF_REMOVAL_WARNING) Exception: ========================================================= The "tensorflow-gpu" package has been removed! Please install "tensorflow" instead. Other than the name, the two packages have been identical since TensorFlow 2.1, or roughly since Sep 2019. For more information, see: pypi.org/project/tensorflow-gpu ========================================================= [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> tensorflow-gpu note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.安装过程出错

最新推荐

recommend-type

高分项目 基于STM32F103单片机的无线测距系统源代码+项目资料齐全+教程文档.zip

【资源概览】 高分项目 基于STM32F103单片机的无线测距系统源代码+项目资料齐全+教程文档.zip高分项目 基于STM32F103单片机的无线测距系统源代码+项目资料齐全+教程文档.zip高分项目 基于STM32F103单片机的无线测距系统源代码+项目资料齐全+教程文档.zip 【资源说明】 高分项目源码:此资源是在校高分项目的完整源代码,经过导师的悉心指导与认可,答辩评审得分高达95分,项目的质量与深度有保障。 测试运行成功:所有的项目代码在上传前都经过了严格的测试,确保在功能上完全符合预期,您可以放心下载并使用。 适用人群广泛:该项目不仅适合计算机相关专业(如电子信息、物联网、通信工程、自动化等)的在校学生和老师,还可以作为毕业设计、课程设计、作业或项目初期立项的演示材料。对于希望进阶学习的小白来说,同样是一个极佳的学习资源。 代码灵活性高:如果您具备一定的编程基础,可以在此代码基础上进行个性化的修改,以实现更多功能。当然,直接用于毕业设计、课程设计或作业也是完全可行的。 欢迎下载,与我一起交流学习,共同进步!
recommend-type

java八股文介绍00002

java八股文,"Java八股文"通常指的是在面试Java开发者时经常被问到的一系列标准问题,这些问题往往是技术面试中的基础部分,用来评估应聘者对Java编程语言和Java虚拟机(JVM)的理解程度。这些问题的答案往往模式化,因此被称为“八股文”。虽然这个词汇带有一定的贬义,但是这些问题却是面试中不可或缺的一部分,因为它们能够快速地检验应聘者的基本技能和理论知识。
recommend-type

东北大学本科毕业设计 论文latex模板 2019

东北大学本科毕业设计 论文latex模板 2019 关于东北大学本科毕业设计论文的LaTeX模板,您可以参考以下两个资源: 1. **Acytoo/neu_bachelor_thesis_template**: 这个模板是修改自一位学长的模板,以适应东北大学最新的要求。它使用GBT7714-2005参考文献标准,并提供了详细的安装和使用说明。您需要使用xelatex进行编译,并可能需要手动安装参考文献的标准。此外,如果您使用的是VSCode编辑器,可以参考提供的VSCode配置。 2. **tzaiyang/NEUBachelorThesis**: 这个模板同样适用于东北大学本科生毕业论文。它提供了详细的VSCode配置,包括快捷键设置和texcount bug修复(仅限Windows用户)。此外,还提供了如何插入公式、图片和三线表的说明,以及如何引用参考文献的方法。 您可以根据自己的需求和喜好选择其中一个模板。如果您对LaTeX不熟悉,建议先学习一些基础知识,以便更好地使用这些模板。祝您毕业设计顺利!
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

实现实时数据湖架构:Kafka与Hive集成

![实现实时数据湖架构:Kafka与Hive集成](https://img-blog.csdnimg.cn/img_convert/10eb2e6972b3b6086286fc64c0b3ee41.jpeg) # 1. 实时数据湖架构概述** 实时数据湖是一种现代数据管理架构,它允许企业以低延迟的方式收集、存储和处理大量数据。与传统数据仓库不同,实时数据湖不依赖于预先定义的模式,而是采用灵活的架构,可以处理各种数据类型和格式。这种架构为企业提供了以下优势: - **实时洞察:**实时数据湖允许企业访问最新的数据,从而做出更明智的决策。 - **数据民主化:**实时数据湖使各种利益相关者都可
recommend-type

如何用python编写api接口

在Python中编写API接口可以使用多种框架,其中比较流行的有Flask和Django。这里以Flask框架为例,简单介绍如何编写API接口。 1. 安装Flask框架 使用pip命令安装Flask框架: ``` pip install flask ``` 2. 编写API接口 创建一个Python文件,例如app.py,编写以下代码: ```python from flask import Flask, jsonify app = Flask(__name__) @app.route('/api/hello', methods=['GET']) def hello():
recommend-type

JSBSim Reference Manual

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

"互动学习:行动中的多样性与论文攻读经历"

多样性她- 事实上SCI NCES你的时间表ECOLEDO C Tora SC和NCESPOUR l’Ingén学习互动,互动学习以行动为中心的强化学习学会互动,互动学习,以行动为中心的强化学习计算机科学博士论文于2021年9月28日在Villeneuve d'Asq公开支持马修·瑟林评审团主席法布里斯·勒菲弗尔阿维尼翁大学教授论文指导奥利维尔·皮耶昆谷歌研究教授:智囊团论文联合主任菲利普·普雷教授,大学。里尔/CRISTAL/因里亚报告员奥利维耶·西格德索邦大学报告员卢多维奇·德诺耶教授,Facebook /索邦大学审查员越南圣迈IMT Atlantic高级讲师邀请弗洛里安·斯特鲁布博士,Deepmind对于那些及时看到自己错误的人...3谢谢你首先,我要感谢我的两位博士生导师Olivier和Philippe。奥利维尔,"站在巨人的肩膀上"这句话对你来说完全有意义了。从科学上讲,你知道在这篇论文的(许多)错误中,你是我可以依
recommend-type

实现实时监控告警系统:Kafka与Grafana整合

![实现实时监控告警系统:Kafka与Grafana整合](https://imgconvert.csdnimg.cn/aHR0cHM6Ly9tbWJpei5xcGljLmNuL21tYml6X2pwZy9BVldpY3ladXVDbEZpY1pLWmw2bUVaWXFUcEdLT1VDdkxRSmQxZXB5R1lxaWNlUjA2c0hFek5Qc3FyRktudFF1VDMxQVl3QTRXV2lhSWFRMEFRc0I1cW1ZOGcvNjQw?x-oss-process=image/format,png) # 1.1 Kafka集群架构 Kafka集群由多个称为代理的服务器组成,这