Python3学习笔记:Debugger speedups using cython not found

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/daihuimaozideren/article/details/80797764

当首次运行py模块时(eclipse),通常会遇到warning

warning: Debugger speedups using cython not found. Run '"C:\Python\Python36\python.exe" "C:\D\J2EESpace\eclipseNEON2\plugins\org.python.pydev.core_6.3.3.201805051638\pysrc\setup_cython.py" build_ext --inplace' to build.
pydev debugger: starting (pid: 10056)

该warning不会影响程序运行。提示未找到cython。

Cython是Python的一个扩展模块工具,采用Python和C语言混合编成,用于加速Python运行效率。

按照提示,进入“pysrc"目录下,执行

python setup_cython.py build_ext --inplace

即可。

注意,有时在执行会发生"Microsoft Visual C++ 14.0 is required"的错误提示。

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

因此,需要保证PC上已经装有Microsoft Visual C++ 14.0 (下载地址)。

猜你喜欢

转载自blog.csdn.net/daihuimaozideren/article/details/80797764
今日推荐