在PaddleOCR-release-2.6框架下運(yùn)行OCR模型,構(gòu)建其虛擬環(huán)境時(shí),報(bào)錯(cuò)
我的基礎(chǔ)環(huán)境為:
系統(tǒng):win10
主框架:PaddleOCR-release-2.6
pip:22.3
python:3.8
以下為第一次報(bào)錯(cuò)信息:
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lanms-neo
............
Failed to build lanms-neo
ERROR: Could not build wheels for lanms-neo, which is required to install pyproject.toml-based projects
第一次嘗試解決,此時(shí)未意識(shí)到error: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe’ failed with exit code 2報(bào)錯(cuò)信息的重要性,借鑒其他博主經(jīng)驗(yàn),直接安裝pip install lanms-neo,仍然報(bào)錯(cuò),報(bào)錯(cuò)信息未變。文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-508640.html
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lanms-neo
Failed to build lanms-neo
ERROR: Could not build wheels for lanms-neo, which is required to install pyproject.toml-based projects
第二次嘗試,借鑒其他博主經(jīng)驗(yàn),可能是paddleocr版本問(wèn)題,于是指定版本安裝pip install paddleocr==2.6.0.2 -i https://pypi.douban.com/simple,不需要?jiǎng)h除之前版本,自動(dòng)更新。新版本paddleocr安裝完畢,于是對(duì)虛擬環(huán)境的迭代安裝pip install -r ./requirements.txt,依然報(bào)錯(cuò),報(bào)錯(cuò)信息未變。
第三次嘗試,想想在新的版本下直接安裝lanms-neo,pip install lanms-neo,依然報(bào)錯(cuò),報(bào)錯(cuò)信息未變。
第四次嘗試,可能是解決錯(cuò)誤的方向錯(cuò)了,于是對(duì)關(guān)鍵報(bào)錯(cuò)信息error: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe’ failed with exit code 2進(jìn)行搜索,借鑒其他博主經(jīng)驗(yàn),說(shuō)是電腦缺少安裝Microsoft Visual C++,但是在本機(jī)中之前就安裝了Microsoft Visual C++各種版本;于是再次搜索該報(bào)錯(cuò)信息,其他博主經(jīng)驗(yàn)為,‘使用C++的桌面開(kāi)發(fā)’,但是給的操作信息不全,于是搜索‘使用C++的桌面開(kāi)發(fā)’,得到詳細(xì)的操作步驟。
等待安裝完畢即可!
不需要關(guān)機(jī)重啟,在終端即可進(jìn)行pip install -r .\requirements.txt虛擬環(huán)境的迭代安裝!文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-508640.html
到了這里,關(guān)于報(bào)錯(cuò)ERROR: Could not build wheels for lanms-neo導(dǎo)致Failed to build lanms-neo情況之一分析與解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!