首先說解決辦法
搜索下載對應(yīng)庫的whl文件即可
下面是解決過程
部分報(bào)錯(cuò)為: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/
我是安裝wordcloud庫時(shí)遇到的安裝錯(cuò)誤,去下載visualstudio后安裝c++庫在pip install wordcloud仍然失敗,于是卸載visualstudio另找其他辦法
然后想到還有一種安裝庫的方式,.whl安裝,于是搜索到了wordcloud庫的whl文件,注意要下載與自己電腦系統(tǒng)和Python版本相一致的wordcloud,下載地址是wordcloud whl文件地址https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud我安裝的是python3.11.1,于是下載第二個(gè)
下載后在下載目錄cmd,然后輸入
pip install wordcloud?1.8.1?cp311?cp311?win_amd64.whl
?完美解決安裝庫失敗的問題(演示環(huán)境為python3.8)文章來源:http://www.zghlxwxcb.cn/news/detail-460617.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-460617.html
到了這里,關(guān)于【非下載vs解決】error: Microsoft Visual C++ 14.0 or greater is required的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!