我正在尝试使用
在python3.4或我的Win10上的py 2.7中安装io模块python -m pip install io
为了将io.StringIO与pycurl一起使用,但在两种情况下都说:
Could not find a version that satisfies the requirement io (from versions: )
No matching distribution found for io
我实际上想使用curl和GET方法访问spotify上的https站点并处理json结果......
任何想法?
感谢
答案 0 :(得分:2)
答案 1 :(得分:2)
io
模块是Python 已经的一部分。它位于Python 2.6以后的标准库中。请参阅文档的Python 2和Python 3版本。
事实上,没有io
package on PyPI 到安装(该链接提供404未找到错误)。
请注意,我希望pycurl编写 bytestrings ,而不是Unicode文本。您可能希望在此处使用io.BytesIO
。请参阅Pycurl and io.StringIO - pycurl.error: (23, 'Failed writing body)和PyCurl documentation。