Can i use Pip on a XTron Pro with Python

I am using the XTron Pro to make a chess game with python makecode. The issue is that, the number 1 chess bot, Stockfish, is a PyPi import, and requires pip to install. I know the Xtron Pro has wifi capabilities, but there is no documentation. So how am i supposed to allow the XTron Pro to use Stockfish, without having to download the entire source code. If there is a way, then how do i use pip with Makecode, as there is no terminal.

1 Like

Makecode only uses python as a language, and it gets translated back into typescript before getting compiled into C. What you are looking for is not possible with makecode but I think you might be able to do it using the stage library with micropython.

1 Like

You can’t use external packages with MakeCode’s Python.

Stockfish is also not a Python package, the wrapper you are using is. Stockfish is a C++ program and you are definitely not fitting that on a microcontroller. You can probably write your own chess engine with the help of https://www.chessprogramming.org or by finding one online designed for microcontrollers with RAM in KiB and clock speed in MHz, not modern day computers with GBs of RAM and GHz clock speed.

1 Like