无法在win10上安装python 3.4中的io模块
我正在尝试在我的Win10上安装python3.4或Py2.7中的io模块无法在win10上安装python 3.4中的io模块,python,io,pycurl,Python,Io,Pycurl,我正在尝试在我的Win10上安装python3.4或Py2.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方法访问spot
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结果
有什么想法吗?谢谢您不必显式安装。它在安装python时随python包一起提供。在代码中,只需执行以下操作:
import io
而且它会很好地工作,
io
模块已经是Python的一部分了。它位于Python 2.6以后的标准库中。请参阅文档的和版本
事实上,没有要安装的文件(链接给出了404NotFound错误)
注意,我希望pycurl编写ByTestRing,而不是Unicode文本。您可能想在这里使用io.BytesIO
。请参阅和。为什么要尝试安装io
?这是一个标准的库模块,您不需要安装它,它已经是Python的一部分(从2.6开始)。