報錯:Failed to build tokenizers /
ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects
在安裝tokenizers出現(xiàn)報錯:
然后去網(wǎng)上找各種解決方法,參考鏈接:ERROR:
原文作者原先是使用miniconda進行安裝的時候報錯的,但是換用conda以后就成功了,有條件的可以試試。
嘗試了其中第一個方法:對pip以及wheel進行更新,pip install --upgrade pip setuptools wheel
很多人評價可以實現(xiàn),但是我嘗試了,還是會有一樣的報錯。(雖然原文作者的pip版本較低,但是好像也是不行);文章來源:http://www.zghlxwxcb.cn/news/detail-578563.html
于是開始嘗試第二種方法:對pip進行降低版本處理 pip install pip==18.1
,結(jié)果較之前更好,但是仍然會報錯,應該是wheel的版本和pip不相匹配造成的結(jié)果,但是我更想嘗試其他方法,所以開始嘗試第三種方法;
鏈接:這個
該方法能夠成功安裝tokenizers,具體原因不明。文章來源地址http://www.zghlxwxcb.cn/news/detail-578563.html
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. ~/.bashrc #重啟終端
pip install transformers==2.5.1
到了這里,關于報錯:Failed to build tokenizers / # ERROR: Could not build wheels for tokenizers, which is required to的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!