error Microsoft Visual C++ 14.0 is required 解決方案


 

 

Windows平台上,pip install fastFM  scrapy等工具的時候,經常出現 error Microsoft Visual C++ 14.0 is required 的錯誤,
 
 
原因是部分python包是使用c或者c++編寫的,因此在安裝的時候需要使用 c++生成工具集。
 
解決方案有兩個:
  1. 到  https://www.lfd.uci.edu/~gohlke/pythonlibs 下載編譯好的包
 
  1. 安裝vc++ 14 build tools :
    1. 安裝 visual studio 最新版, 選擇 vc++ build tools 和 windows sdk 10
    2. 最關鍵: pip install --upgrade setuptools  才能自動發現 vc++ compilers ( Before do anything, install or upgrade the Setuptools Python package. It contain compatibility improvements and add automatic use of compilers:)
 
 
 
 


免責聲明!

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



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