常规操作,直接pip install lap,出现如下报错信息

Collecting lapDownloading lap-0.4.0.tar.gz (1.5 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 1.1 MB/s eta 0:00:00     Preparing metadata (setup.py) ... done
Building wheels for collected packages: lapBuilding wheel for lap (setup.py) ... errorerror: subprocess-exited-with-error× python setup.py bdist_wheel did not run successfully.│ exit code: 1╰─> [28 lines of output]Partial import of lap during the build process.Generating cython filesrunning bdist_wheelrunning buildrunning config_ccunifing config_cc, config, build_clib, build_ext, build commands --compiler
optionsrunning config_fcunifing config_fc, config, build_clib, build_ext, build commands --fcompileroptionsrunning build_srcbuild_srcbuilding extension "lap._lapjv" sourcesbuilding data_files sourcesbuild_src: building npy-pkg config filesC:\Users\HP\anaconda3\lib\site-packages\setuptools\command\install.py:34: Se
tuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and
other standards-based tools.warnings.warn(running build_pycreating buildcreating build\lib.win-amd64-3.8creating build\lib.win-amd64-3.8\lapcopying lap\lapmod.py -> build\lib.win-amd64-3.8\lapcopying lap\__init__.py -> build\lib.win-amd64-3.8\laprunning build_extNo module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying f
rom distutilscustomize MSVCCompilercustomize MSVCCompiler using build_extCCompilerOpt.cc_test_flags[1013] : testing flags (/O2)error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Micros
oft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/  CCompilerOpt.cache_flush[809] : write cache to path -> C:\Users\HP\AppData\L
ocal\Temp\pip-install-777j3m49\lap_4ddbc6bcd3c84fffadc6f1fed26f7595\build\temp.win
-amd64-3.8\Release\ccompiler_opt_cache_ext.py[end of output]note: This error originates from a subprocess, and is likely not a problem with
pip.ERROR: Failed building wheel for lapRunning setup.py clean for lap
Failed to build lap
Installing collected packages: lapRunning setup.py install for lap ... errorerror: subprocess-exited-with-error× Running setup.py install for lap did not run successfully.│ exit code: 1╰─> [28 lines of output]Partial import of lap during the build process.Generating cython filesrunning installC:\Users\HP\anaconda3\lib\site-packages\setuptools\command\install.py:34: Se
tuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and
other standards-based tools.warnings.warn(running buildrunning config_ccunifing config_cc, config, build_clib, build_ext, build commands --compiler
optionsrunning config_fcunifing config_fc, config, build_clib, build_ext, build commands --fcompileroptionsrunning build_srcbuild_srcbuilding extension "lap._lapjv" sourcesbuilding data_files sourcesbuild_src: building npy-pkg config filesrunning build_pycreating buildcreating build\lib.win-amd64-3.8creating build\lib.win-amd64-3.8\lapcopying lap\lapmod.py -> build\lib.win-amd64-3.8\lapcopying lap\__init__.py -> build\lib.win-amd64-3.8\laprunning build_extNo module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying f
rom distutilscustomize MSVCCompilercustomize MSVCCompiler using build_extCCompilerOpt.cc_test_flags[1013] : testing flags (/O2)error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Micros
oft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/  CCompilerOpt.cache_flush[809] : write cache to path -> C:\Users\HP\AppData\L
ocal\Temp\pip-install-777j3m49\lap_4ddbc6bcd3c84fffadc6f1fed26f7595\build\temp.win
-amd64-3.8\Release\ccompiler_opt_cache_ext.py[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.
╰─> lapnote: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

解决方法:

不用pip,用conda安装

conda install -c conda-forge lap

或者还可以在github上拉取

pip install git+git://github.com/gatagat/lap.git

ModuleNotFoundError: No module named ‘lap‘ 已解决相关推荐

  1. python下载库报错_下载python中Crypto库报错:ModuleNotFoundError: No module named ‘Crypto’的解决...

    下载python中Crypto库报错:ModuleNotFoundError: No module named 'Crypto'的解决 前言 最近在网上找了很多下载Crypto的方法,感觉作用都不算很 ...

  2. “ ModuleNotFoundError: No module named ‘tkinter‘ “的解决方法

    " ModuleNotFoundError: No module named 'tkinter' "的解决方法 参考文章: (1)" ModuleNotFoundErro ...

  3. 运行django代码报错ModuleNotFoundError: No module named 'myapp'如何解决

    运行代码报错ModuleNotFoundError: No module named 'myapp'如何解决 您可以回顾一下之前是否使用过django核心模块中的User? from django.c ...

  4. Python使用pip安装报错ModuleNotFoundError: No module named ‘pkg_resources‘的解决方法

    Python使用pip安装报错ModuleNotFoundError: No module named 'pkg_resources'的解决方法   大家好,我叫亓官劼(qí guān jié ),在 ...

  5. ModuleNotFoundError: No module named ‘lap‘

    问题描述: ModuleNotFoundError: No module named 'lap' 解决方案: 1.官网下载lap压缩包 官网地址:地址 2.解压 3.在解压后的目录下cmd命令行 运行 ...

  6. python pip 错误 ModuleNotFoundError: No module named pip._internal 解决办法

    问题 升级新版pip 之后,不论是本地,还是使用anaconda环境,都有可能在用pip下载的时候出现错误: ModuleNotFoundError: No module named 'pip._in ...

  7. Python3 已经安装相关库,Pycharm 仍然报错 ModuleNotFoundError: No module named 'xxxxxx' 的解决办法

    以 requests 库为例,打开 cmd,运行命令 pip install requests,即可安装 requests 库,由于我已经安装过,所以会提示 Requirement already s ...

  8. 在jupyter安装jieba出错ModuleNotFoundError: No module named ‘jieba‘的解决办法

    我尝试了5次方法,最后方法5 成功了,你们可以直接看方法5,如果不行,也许你们是前面几种方法就可以成功 1方法一 最常用的方法就是在cmd/anaconda prompt下运行代码: pip inst ...

  9. Python运行出现:ModuleNotFoundError: No module named 'logbook',解决办法

    ModuleNotFoundError: No module named 'xlrd' ModuleNotFoundError: No module named 'xlwt' AttributeErr ...

最新文章

  1. ECMAScript6——Set数据结构
  2. Docker 是什么?
  3. pcl 平面分割 RANSAC
  4. 递归算法学习系列之八皇后问题
  5. 如果当初你爱的再狠一点
  6. java 自定义报表_灵活数据分析 | 自定义数据分析_集力数据系统平台_Java报表系统软件...
  7. [html] 制作一个不规则形状有哪些方法可以实现?
  8. 干货收藏!一文看懂8个常用Python库从安装到应用
  9. 从源码分析RocketMQ系列-Consumer消息接收逻辑
  10. csh shell_一篇文章从了解到入门shell
  11. java 二叉排序_java实现二叉排序树
  12. c语言第一周项目,C语言第一周实战
  13. 数据质量低该如何解决
  14. ggplot2作图4
  15. 我看Asp.Net控件(三)
  16. linux冗余服务器,冗余链路bond 1在Linux服务器中的应用
  17. 联合概率分布、边缘概率分布
  18. UGUI 实现屏幕外怪物的指示箭头
  19. java 批量爬虫_签名图片一键批量生成 使用Java的Webmagic爬虫实现
  20. 你不屑于大器晚成,就只能平庸一生

热门文章

  1. 计算机学院的师弟师妹们,请不要去餐馆打工了
  2. 大话系列 | 逻辑回归的入门与优化
  3. ‘Authentication failed.‘ on server xx.xx.xxx.x:27017. The full response is { “ok“ : 0.0, “errmsg“
  4. 计算机网络词汇解释(一)——网络协议体系
  5. C语言单元测试框架——CUnit
  6. 电脑录像软件推荐?分享3款,简单好用且方便
  7. FileWriter和BufferedWriter用处,区别
  8. Spring Boot WebSocket实时监控
  9. Android常考问题(8)-设计模式:Builder模式(顺带学习了一下String的比较和final)
  10. Lync 客户端:无法登陆到Lync,验证服务器中的证书时遇到问题