Search code examples
pythondebianbeagleboneblackcpython

How to install cpython3 and cpython3-dbg on Debian


I have a BeagleBone Black running Debian GNU/Linux version 9. I need to install cpython3 and cpython3-dbg.

I have tried googling around the internet and cannot figure out how to get these packages. If I type sudo apt-get install cpython3 it returns E: Unable to locate package cpython3.

According to this article, cffi supports cpython. However, I found I cannot import cpython3 into Python 3, despite having the cffi package installed.

Can someone please help get me started? I am new to package installations.

UPDATE: problem was I was spelling cpython not cython.


Solution

  • Well, it's cython, not cpython ;-)

    FYI: CPython stands for the default Python implementation, which is written in C. Unless being compared with PyPy, Jython, IronPython and others, it's just called Python. The Debian package name for it is python3 and is likely to be already installed by default.

    Not to be confused with Cython, which is a CPython extension that provides C-like performance with code written in Python style.