在服務(wù)器上安裝langchain+chatglm-6b的環(huán)境包requirements時遇到報錯:?
git?clone --quiet https://github.com/facebookresearch/detectron2.git /tmp/pip-install-wdn8vazx/detectron2_09a41306c6a04abaa4ec763689775b94
? fatal: unable to access 'https://github.com/facebookresearch/detectron2.git/': Failed to connect to github.com port 443: Connection timed out
? error: subprocess-exited-with-error
?
解決辦法:?
看錯誤信息detectron2的安裝報錯,具體看其實是網(wǎng)絡(luò)連接問題,”Failed to connect to github.com port 443: Connection timed out“ ,單獨安裝detectron2,為其替換一個鏡像即可。?
啟智社區(qū)提供了關(guān)于這個包的國內(nèi)鏡像。 Learning-Develop-Union/detectron2 - detectron2 - OpenI - 啟智AI開源社區(qū)提供普惠算力!
具體:?
在requirements 里將這行先注釋掉。
pip3 install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple/ && rm -rf pip3 cache dir
然后:
?
git clone?https://openi.pcl.ac.cn/Learning-Develop-Union/detectron2.git
python -m pip install -e detectron2
?
如果有繼續(xù)提示關(guān)于protoc的錯誤“If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.” ,指定版本升級下即可。文章來源:http://www.zghlxwxcb.cn/news/detail-759008.html
pip install --upgrade protobuf==3.20.1文章來源地址http://www.zghlxwxcb.cn/news/detail-759008.html
到了這里,關(guān)于報錯解決git clone --quiet https://github.com/facebookresearch/detectron2.git /tmp/pip-install-wdn8va的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!