我新增了python.I安装了python 3.4并尝试运行commamd “pip install gevent”,但它显示错误“TypeError:unorderable types:NoneType()> = str()”。如何解决这个问题。在窗口中安装gevent
在此先感谢
我新增了python.I安装了python 3.4并尝试运行commamd “pip install gevent”,但它显示错误“TypeError:unorderable types:NoneType()> = str()”。如何解决这个问题。在窗口中安装gevent
在此先感谢
我认为这是因为gevent
only 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
解决方案:你必须安装Python 2.x版的Windows,以便您可以根据需要使用gevent
。
你看到的是因为gevent
不支持python 3呢。这就是为什么你现在正在收到错误。
谢谢你的回复@Brianiac ...但我想为我的项目安装gevent ... wat我可以做什么.. – Reddevil
你可以做的是安装python 2.7。*,最新版本的python 2,然后安装'gevent'。如果您使用的是mac/linux,您可能需要使用'pyenv',它可以让您轻松管理您的python环境。否则,你可能只想从python.org网站的安装文件中安装python 2。然后你需要改变你的PATH变量。 –
Virtuslenv和pyenv也可以在Windows下工作 –
对于使用Python 2.7的Windows 64位: 安装greenlet(PIP安装greenlet) 然后安装Microsoft Visual C++ 9.0(截至2015年1月20日)在http://aka.ms/vcpython27 然后你就可以通过PIP安装GEVENT(PIP安装GEVENT )
如果你不确定如何使用pip在windows上安装,它也是一个下载。我正在使用pip-Win 1.7
谢谢@ jrd1 ...但是pip安装在Python 3.4默认...所以我用它...但在Python 2.x版本我试图安装点,但我可以' t ...所以帮我.. – Reddevil
@Reddevil:你有没有安装Python 2.x?如果是这样,那么下载pip并像安装任何其他模块一样安装它(使用'setuptools'模块):'python setup.py install'。 – jrd1
@Reddevil:按照这个教程了解更多:http://pip.readthedocs.org/en/latest/installing.html 完成后,您可以使用该点安装'gevent' – jrd1