国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

已經(jīng)安裝vs依然顯示error: Microsoft Visual C++ 14.0 or greater is required.

這篇具有很好參考價值的文章主要介紹了已經(jīng)安裝vs依然顯示error: Microsoft Visual C++ 14.0 or greater is required.。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

報錯信息

在 Windows 下的 Conda 環(huán)境中pip install一些需要現(xiàn)場編譯的庫時經(jīng)常會報錯:

  Building wheel for pyopenjtalk (pyproject.toml) ... error
  ERROR: Command errored out with exit status 1:
   command: 'D:\Miniconda3\envs\dl\python.exe' 'D:\Miniconda3\envs\dl\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\Administrator\AppData\Local\Temp\tmpvdg4l0qp'
       cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-jpy19xi8\pyopenjtalk_5c83910e21044265aad3fbfcb35bbc2e
  Complete output (21 lines):
  fatal: not a git repository (or any of the parent directories): .git
  running bdist_wheel
  running build
  running build_py
  -- Building version 0.3.0
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\pyopenjtalk
  copying pyopenjtalk\utils.py -> build\lib.win-amd64-3.7\pyopenjtalk
  copying pyopenjtalk\version.py -> build\lib.win-amd64-3.7\pyopenjtalk
  copying pyopenjtalk\__init__.py -> build\lib.win-amd64-3.7\pyopenjtalk
  creating build\lib.win-amd64-3.7\pyopenjtalk\htsvoice
  copying pyopenjtalk\htsvoice\LICENSE_mei_normal.htsvoice -> build\lib.win-amd64-3.7\pyopenjtalk\htsvoice
  copying pyopenjtalk\htsvoice\mei_normal.htsvoice -> build\lib.win-amd64-3.7\pyopenjtalk\htsvoice
  copying pyopenjtalk\htsvoice\README.md -> build\lib.win-amd64-3.7\pyopenjtalk\htsvoice
  running build_ext
  skipping 'pyopenjtalk\openjtalk.cpp' Cython extension (up-to-date)
  skipping 'pyopenjtalk\htsengine.cpp' Cython extension (up-to-date)
  building 'pyopenjtalk.openjtalk' extension
  setup.py:26: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    _CYTHON_INSTALLED = ver >= LooseVersion(min_cython_ver)
  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/
  ----------------------------------------
  ERROR: Failed building wheel for pyopenjtalk
Failed to build pyopenjtalk
ERROR: Could not build wheels for pyopenjtalk, which is required to install pyproject.toml-based projects

上圖為安裝pyopenjtalk時的報錯信息。

規(guī)避方法

我之前遇到這種問題的解決方法是直接下載已經(jīng)在Windows上編譯好的whl文件,然后:

pip install xxx.whl

然而該網(wǎng)站并沒有編譯好的pyopenjtalk包,因此這次必須解決該錯誤。

問題原因

根據(jù)微軟官方問答平臺中的說法,應(yīng)該是Conda環(huán)境下pip的構(gòu)建工具選擇錯誤。

解決方法

pip install之前執(zhí)行:

SET DISTUTILS_USE_SDK=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64

注意vcvarsall.bat的路徑因人而異。

至于為什么要這么做,可以參考下sklearn的高級安裝文檔。文章來源地址http://www.zghlxwxcb.cn/news/detail-539029.html

到了這里,關(guān)于已經(jīng)安裝vs依然顯示error: Microsoft Visual C++ 14.0 or greater is required.的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包