Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to include c code in python in pycharm?

Tags:

python

c

pycharm

I'm trying to speed up some code that I have written in Python and have thought about writing some code in C to do so. However, I am using PyCharm and its supported languages section, https://www.jetbrains.com/help/pycharm/supported-languages.html doesn't mention C, meaning no option to just create a C file and then import it into python. Is there any other way of doing it?

like image 815
Arkleseisure Avatar asked Jun 23 '26 12:06

Arkleseisure


1 Answers

Unfortunately PyCharm does not support any C/C++ coding and there are no existing plugins for PyCharm that will support this. With that said, there is an IDE for C and C++ called CLion which is released by JetBrains just like PyCharm. CLion supports many features varying from Python debugger to Python Console for working with python and also supports all features that Pycharm offers. This should satisfy your needs towards using C code with Python in the most healthy way.

Here are some useful links for you:

https://www.jetbrains.com/clion/

https://www.jetbrains.com/help/clion/python.html#features

Good luck!

like image 193
MrBulut Avatar answered Jun 25 '26 03:06

MrBulut



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!