推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
wanxi3
V2EX  ›  Python

Python 的 requests 库上传文件报错

  •  
  •   wanxi3 · Aug 23, 2017 · 1922 views
    This topic created in 3272 days ago, the information mentioned may be changed or developed.
    return self.request('POST', url, data=data, json=json, **kwargs)
    File "/Users/libin/pyspider_env/lib/python2.7/site-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
    File "/Users/libin/pyspider_env/lib/python2.7/site-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
    File "/Users/libin/pyspider_env/lib/python2.7/site-packages/requests/adapters.py", line 473, in send
    raise Connecti onError(err, request=request)
    requests.exceptions.Connecti onError: ('Connection aborted.', error(32, 'Broken pipe'))

    谷歌了一下,也没发现什么解决的方法
    1 replies    2017-08-23 20:30:34 +08:00
    ysc3839
        1
    ysc3839  
       Aug 23, 2017 via Android
    从这个信息来看是意外断开连接了。如果是墙内的话考虑挂代理。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2856 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 08:39 · PVG 16:39 · LAX 01:39 · JFK 04:39
    ♥ Do have faith in what you're doing.