2024-10-02 12:32:45 发布
网友
我是python新手,我安装了python3.4并尝试运行commamd “pip install gevent”,但它显示错误“TypeError:unordered types:NoneType()>;=str()”。如何解决此问题。在
提前谢谢
对于使用Python 2.7的64位Windows: 安装greenlet(pip安装greenlet) 然后在http://aka.ms/vcpython27上安装微软Visual C++ 9(如2015-01-20) 然后可以通过pip安装gevent(pip install gevent)
如果您不确定如何使用pip在windows上安装,也可以下载。我用的是pip Win 1.7
您看到的是因为gevent还不支持Python3。这就是你现在得到错误的原因。在
gevent
我想这是因为geventonly supports Python 2.5 and greater:
Operating System :: MacOS :: MacOS X Operating System :: Microsoft :: Windows Operating System :: POSIX Programming Language :: Python :: 2.5 Programming Language :: Python :: 2.6 Programming Language :: Python :: 2.7
解决方案:您必须安装Python2.x版本for Windows,这样您就可以根据需要使用gevent。
对于使用Python 2.7的64位Windows: 安装greenlet(pip安装greenlet) 然后在http://aka.ms/vcpython27上安装微软Visual C++ 9(如2015-01-20) 然后可以通过pip安装gevent(pip install gevent)
如果您不确定如何使用pip在windows上安装,也可以下载。我用的是pip Win 1.7
您看到的是因为
gevent
还不支持Python3。这就是你现在得到错误的原因。在我想这是因为
gevent
only supports Python 2.5 and greater:解决方案:您必须安装Python2.x版本for Windows,这样您就可以根据需要使用
gevent
。相关问题 更多 >
编程相关推荐