cython查看html,Cython Speedups

Installing Python extension

PyCharm's debugger is written in Python. Python is an interpreted language, which means that instructions have to be translated to machine code as the code is being run.

This costs time, and therefore it isn't as fast as the compiled code. Thankfully, Python supports compiled C-extensions through Cython. PyCharm ships with C versions of debugger code, which you can compile to make debugging in PyCharm faster.

If you have a large code base, using this speedup extension is reasonable.

The actions required to get additional speedups, depend on your platform:*NIXWhen the users start the debugger session, the notification popup appears. The users just need to click the Install link there: 498dd7fc6b171f1387ee1c0245c0b854.pngIf you repeatedly receive the same popup notifications after you've already clicked the Install link, check your permissions for the directories used by PyCharm. You must have writing permissions to install Cython extensions.macOS and WindowsYou don't need to do anything. We've bundled precompiled extensions, so you're already using them.

Troubleshooting

Reported ProblemPossible causeSolutionThe following error message is shown:

Python.h: no such file or directory.You lack header files and static libraries for Python dev.Use your package manager to install header files and static libraries for Python dev system-wide.

For example, you can use the following commands:for Python 2.x:

sudo apt-get install python-dev

for Python 3.5:

sudo apt-get install python3-dev

for Python 3.6:

sudo apt-get install python3.6-dev

for Python 3.7:

sudo apt-get install python3.7-dev

for Python 3.8:

sudo apt-get install python3.8-dev

The following error message is shown:

Command 'gcc' failed with exit status 1.You lack a C compiler.Install a C compiler in order to build Cython extensions for the debugger.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值