wangxr0526 / RetroPrime

Code for Single-step Retrosynthesis model Retroprime
MIT License
34 stars 6 forks source link

Environment setup failure #5

Open kymckay opened 2 years ago

kymckay commented 2 years ago

Opening this as more of a note to future readers. The current Anaconda environment setup instructions fail to solve for me and after much experimentation I was able to get a working environment like so:

conda create -n retroprime-env python=3.6 pytorch=1.5.0 torchvision torchtext cudatoolkit=10.1 -c pytorch
conda activate retroprime-env
pip install rdkit-pypi
conda install pandas tqdm six

For whatever reason, this would only resolve for me if I specify all of the PyTorch dependencies when first creating the environment like that. I found that RDKit had to be installed from pip (conda complains about conflicts).

Newer versions of PyTorch will not work and will encounter quite an opaque error to do with index data types. Additionally, the project is using legacy data structures from the older versions of torchtext.

Also note that some of these are undocumented dependencies, but you'll find you need them when trying to train and test.