日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

pip sintall pyspider 报错:ERROR: Command errored out with exit status 10

發布時間:2023/12/10 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 pip sintall pyspider 报错:ERROR: Command errored out with exit status 10 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

系統環境:
Windows 10 64位
Python 3.6.5

pyspider 是國人寫的一款開源爬蟲框架,作者博客:http://blog.binux.me/ ,使用 pip install pyspider 命令即可安裝 pyspider,安裝報錯如下:

C:\Users\Lenovo>pip install pyspider Collecting pyspiderDownloading https://files.pythonhosted.org/packages/d0/97/d6062c928f53d899ff2a8538fed11d4d425ba3d27c96248a2c601c1c9fef/pyspider-0.3.10.tar.gz (110kB)|████████████████████████████████| 112kB 819kB/s Requirement already satisfied: Flask>=0.10 in e:\python\lib\site-packages (from pyspider) (1.1.1) Requirement already satisfied: Jinja2>=2.7 in e:\python\lib\site-packages (from pyspider) (2.10.1) Requirement already satisfied: chardet>=2.2 in e:\python\lib\site-packages (from pyspider) (3.0.4) Requirement already satisfied: cssselect>=0.9 in e:\python\lib\site-packages (from pyspider) (1.1.0) Requirement already satisfied: lxml in e:\python\lib\site-packages (from pyspider) (4.3.4) Collecting pycurl (from pyspider)Downloading https://files.pythonhosted.org/packages/ac/b3/0f3979633b7890bab6098d84c84467030b807a1e2b31f5d30103af5a71ca/pycurl-7.43.0.3.tar.gz (215kB)|████████████████████████████████| 215kB 595kB/s ERROR: Command errored out with exit status 10:command: 'e:\python\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Lenovo\\AppData\\Local\\Temp\\pip-install-7vptovzg\\pycurl\\setup.py'"'"'; __file__='"'"'C:\\Users\\Lenovo\\AppData\\Local\\Temp\\pip-install-7vptovzg\\pycurl\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-infocwd: C:\Users\Lenovo\AppData\Local\Temp\pip-install-7vptovzg\pycurl\Complete output (1 lines):Please specify --curl-dir=/path/to/built/libcurl---------------------------------------- ERROR: Command errored out with exit status 10: python setup.py egg_info Check the logs for full command output.

原因分析:PyCurl 安裝錯誤,需要安裝 PyCurl 庫(PyCurl 是一個Python接口,是多協議文件傳輸庫的 libcurl。類似于urllib Python模塊,PyCurl 可以用來從Python程序獲取 URL 所標識的對象)

解決方法:訪問 https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurl ,下載對應的 wheel 文件,比如我是 Windows 10 64位,Python 3.6.5,則下載 pycurl?7.43.0.3?cp36?cp36m?win_amd64.whl,然后使用命令 pip install pycurl?7.43.0.3?cp36?cp36m?win_amd64.whl 進行安裝即可,PyCurl 安裝完成,再次執行 pip install pyspider 即可成功安裝 pyspider

總結

以上是生活随笔為你收集整理的pip sintall pyspider 报错:ERROR: Command errored out with exit status 10的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。