码迷,mamicode.com
首页 > 其他好文 > 详细

Cython的坑(未解决)

时间:2021-04-15 12:01:48      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:code   str   sof   command   无效   compiler   init   utils   pil   

使用pycharm出现了错误:

Compile Cython Extensions Error

点击install无效,各种方法都无效,网上说需要Microsoft Visual C++ Build Tools,使用Microsoft Visual C++ Build Tools修复仍然无效;

找到一个Cython下载包直接安装,出现了新的错误:

Non-zero exit code (1):
Traceback (most recent call last):
  File "E:\Program Files\JetBrains\PyCharm 2020.1.3\plugins\python\helpers\pydev\setup_cython.py", line 111, in <module>
    build_extension("_pydevd_bundle", extension_name, target_pydevd_name, force_cython, extension_folder, True)
  File "E:\Program Files\JetBrains\PyCharm 2020.1.3\plugins\python\helpers\pydev\setup_cython.py", line 82, in build_extension
    setup(
  File "C:\Users\SE\.virtualenvs\pyexcel\lib\site-packages\setuptools\__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "D:\python39\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "D:\python39\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "D:\python39\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\SE\.virtualenvs\pyexcel\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
    _build_ext.run(self)
  File "C:\Users\SE\.virtualenvs\pyexcel\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "D:\python39\lib\distutils\command\build_ext.py", line 306, in run
    self.compiler = new_compiler(compiler=self.compiler,
  File "D:\python39\lib\distutils\ccompiler.py", line 1032, in new_compiler
    return klass(None, dry_run, force)
  File "D:\python39\lib\distutils\cygwinccompiler.py", line 280, in __init__
    CygwinCCompiler.__init__ (self, verbose, dry_run, force)
  File "D:\python39\lib\distutils\cygwinccompiler.py", line 124, in __init__
    if self.ld_version >= "2.10.90":
TypeError: ‘>=‘ not supported between instances of ‘NoneType‘ and ‘str‘

 

....................................

 

Cython的坑(未解决)

标签:code   str   sof   command   无效   compiler   init   utils   pil   

原文地址:https://www.cnblogs.com/seven18/p/14657431.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!