First you need to install this library:
pip install python-chess
And make sure you're using the writeright pip
, because still in some Linus distros pip
and python
are python 2.x
and for python 3.x
you should use pip3
and python3
. If you want to check try this:
pip --version
You will see an output like this that will tell you what python you're using, in my case it's 3.8:
pip 19.2.3 from /usr/lib/python3.8/site-packages/pip (python 3.8)