标签: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‘
....................................
标签:code str sof command 无效 compiler init utils pil
原文地址:https://www.cnblogs.com/seven18/p/14657431.html