Python - Can't Install Packages: TypeError: unorderable types: NoneType() >= str()

前端 未结 6 436
我在风中等你
我在风中等你 2020-12-19 10:02

System: Win7 64, Python 3.4, Pycharm 3.0.2, MinGW

Whenever I try to install a package, in Pycharm or via command line, I get this:

running install
ru         


        
6条回答
  •  一整个雨季
    2020-12-19 10:31

    Adding to zolointo's answer, the cython installation worked fine after following your instructions. I'm installing Kivy with Python 3.4.1 on Windows 7. Kivy requires Cython. After downloading Cython and running the installation scripts I received the following error:

    Cython compilation Problem "error: Unable to find vcvarsall.bat"

    Researching that error took me down the path of installing MinGW. If The MinGW installer overwhelms you with optional packages, doc, lic, bin and dlls to install. I installed the ones you mentioned above.

    if you run:

    python setup.py build_ext --inplace --compiler=mingw32'

    you'll get a list of errors ending in:

    TypeError: unorderable types: NoneType() >= str()

    To fix that I followed zolointo's instructions adding MinGW to the PATH and creating a distutils.cfg file. At that point you can run the setup.py for Cython and everything works!

提交回复
热议问题