安裝 D2l 報錯 全網最新解決方式



報錯

\moments
       copying pandas\tests\window\moments\test_moments_rolling_apply.py -> build\lib.win-amd64-cpython-310\pandas\tests\window\moments
       copying pandas\tests\window\moments\test_moments_rolling_functions.py -> build\lib.win-amd64-cpython-310\pandas\tests\window\moments
       copying pandas\tests\window\moments\test_moments_rolling_quantile.py -> build\lib.win-amd64-cpython-310\pandas\tests\window\moments
       copying pandas\tests\window\moments\test_moments_rolling_skew_kurt.py -> build\lib.win-amd64-cpython-310\pandas\tests\window\moments
       copying pandas\tests\window\moments\__init__.py -> build\lib.win-amd64-cpython-310\pandas\tests\window\moments
       creating build\lib.win-amd64-cpython-310\pandas\_libs\tslibs
       copying pandas\_libs\tslibs\__init__.py -> build\lib.win-amd64-cpython-310\pandas\_libs\tslibs
       creating build\lib.win-amd64-cpython-310\pandas\_libs\window
       copying pandas\_libs\window\__init__.py -> build\lib.win-amd64-cpython-310\pandas\_libs\window
       creating build\lib.win-amd64-cpython-310\pandas\io\formats\templates
       copying pandas\io\formats\templates\html.tpl -> build\lib.win-amd64-cpython-310\pandas\io\formats\templates
       UPDATING build\lib.win-amd64-cpython-310\pandas/_version.py
       set build\lib.win-amd64-cpython-310\pandas/_version.py to '1.2.4'
       running build_ext
       building 'pandas._libs.algos' 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 pandas
Failed to build pandas
ERROR: Could not build wheels for pandas, which is required to install pyproject.toml-based projects

安裝C++ 2015 

d2l 最新版本是 d2l-zh/d2l at master · d2l-ai/d2l-zh · GitHub 

0.17.5

安裝命令

pip install d2l==0.17.5

將版本降低為3.9.5


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM