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

前端 未结 6 419
我在风中等你
我在风中等你 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:43

    Set the compiler to the msvc (Visual Studio)

    It has been tested on Windows 10 x64, Python 3.5.1.

    Solution:

    Set the compiler to the msvc (Visual Studio).

    Create "distutils.cfg" in the "C:\Python35-32\Lib\distutils" folder with the following information

    [build]
    compiler=msvc
    
    [build_ext]
    compiler=msvc
    

    Link: https://wiki.python.org/moin/WindowsCompilers

提交回复
热议问题