[英]python -m spacy download en too slow how to speed up
當我運行python -m spacy download en
時,速度低於 10KB/s
例如:
Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple/
Collecting en_core_web_sm==2.1.0 from https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.1.0/en_core_web_sm-2.1.0.tar.gz#egg=en_core_web_sm==2.1.0
Downloading https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.1.0/en_core_web_sm-2.1.0.tar.gz (11.1MB)
29% |█████████▍ | 3.2MB 8.0kB/s eta 0:16:16
然后連接會因為讀取超時而中斷。 但是我可以在瀏覽器中快速下載en_core_web_sm-2.1.0.tar.gz 。 如何通過使用命令行直接使用en_core_web_sm-2.1.0.tar.gz
python -m spacy install ./en_core_web_sm-2.1.0.tar.gz
直接使用colab下載文件,然后從colab下載就可以更快了,使用wget命令在colab上下載文件。
!wget <download URL>
從 colab 下載文件,然后在你的 python 環境中使用 pip 安裝它
pip install <location of the file>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.