I've only started playing with the code (ran play.py but now more focused on the blog post), but here are my installation steps. I hope this helps someone.
This all assumes you have Anaconda installed on your machine and use Linux.
If you normally use Python 3, create a new environment for Python 2.7:
conda create -n python2 python=2.7
Environments are like alternate Python installations you can step into whenever you need to. Whenever you want to use the 2.7 environment, use
source activate python2
When installing packages and running deep-pink, make sure you're in a python 2.7 environment. Some of the dependencies can be installed with Anaconda:
conda install theano scikit-learn h5py
python-chess you can get through pip (will work through Anaconda):
pip install python-chess
Getting Sunfish is a little weirder, since I couldn't get conda or pip to get it. Instead, I cloned the repo git clone https://github.com/thomasahle/sunfish and just copied sunfish.py from it into deep-pink's directory. According the Sunfish's readme.md, it's self-contained in that one script.
I've only started playing with the code (ran play.py but now more focused on the blog post), but here are my installation steps. I hope this helps someone.
This all assumes you have Anaconda installed on your machine and use Linux.
If you normally use Python 3, create a new environment for Python 2.7:
Environments are like alternate Python installations you can step into whenever you need to. Whenever you want to use the 2.7 environment, use
When installing packages and running deep-pink, make sure you're in a python 2.7 environment. Some of the dependencies can be installed with Anaconda:
python-chess
you can get through pip (will work through Anaconda):Getting Sunfish is a little weirder, since I couldn't get conda or pip to get it. Instead, I cloned the repo
git clone https://github.com/thomasahle/sunfish
and just copied sunfish.py from it into deep-pink's directory. According the Sunfish's readme.md, it's self-contained in that one script.