-
Notifications
You must be signed in to change notification settings - Fork 206
TorchDrug for Ubuntu 18.04 without Anaconda #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I also encountered installation issues and wrote a blog post on the steps that eventually let me install. I used conda, but mostly pip calls from within my conda env. So, I think you should be able to adapt my solution. I am sure the devs will streamline the installation process. But, for now, we can use these steps to dig into the repo, learn about it, and continue to iron out kinks! |
Hi! There is a RDKit available on pip, although we didn't test much in this way. You may try
The library doesn't require full Anaconda and Miniconda is enough. We will also come up with a guide for pip installation. |
Thanks @rmurphy2718 for the nice blog! Create venv
Note that we have only tested python 3.7/3.8. There may be some metaclass-related bugs on other python versions. Install requirements
Install torch scatter according to your PyTorch versionPyTorch 1.9.0
PyTorch 1.8.0/1.8.1
Note: Binaries of older versions are also provided for PyTorch 1.4.0, PyTorch 1.5.0, PyTorch 1.6.0 and PyTorch 1.7.0/1.7.1 (following the same procedure). Install torchdrug
We will update the readme to make the installation much easier on different machines soon |
UpdateGenerally, it is not recommended to install RDKit via pip ( Problem StatementI found that if you do so, you will probably meet the following error:
The torchdrug/torchdrug/metrics/metric.py Line 15 in 356e1ce
Usually, a Contrib directory is located at the place specified by rdkit.Chem.RDConfig.RDContribDir .However, I find the RDKit installed via pip fails to include this directory in the right place. Workaround
See rdkit/rdkit#2279 for extra information on how to using the |
Thank you all. I just followed the advices of @rmurphy2718 , @KiddoZhu and @shichence and all worked as a charm. Specifically, on my Linux system with Ubuntu 18.04,Python 3.9.6 and CUDA 11.1, I created a new ./venv, activated and:
Then I followed the installation from source as in above:
And all worked well. I hope it helps. P.S. I didn't encounter the problem mentioned by @shichence with |
FYI. I use PyTorch 1.8.1 (py3.7_cuda10.2_cudnn7.6.5_0) from conda, and there is no complaint about TorchDrug just slightly depends on |
The metaclass issue is fixed in d187dd8 |
|
Hi torchdrug team! Thanks for the great library, and I am looking forward to it growing further! I also encountered installation issues when directly running the conda installation. My system was Ubuntu 18.04, Python 3.8, CUDA 11.0. In case it helps anyone else, here are the set of commands that I used to get the tutorials up and running, initially (will continue to test if I encounter any issues):
I suspect that the direct conda installation is not able to install the correct version of torch-scatter for my CUDA version. |
Yes. I think the major issue for conda install is the version of torch-scatter. A crappy solution is to install a non-official torch-scatter build (only available for PyTorch 1.4.* & 1.5.*), which provides a better version check than the official one.
We will check if there is any better solution for installation of the official torch-scatter. |
What is the simplest way to install it with pip on Ubuntu 18.04 please?
I have successfully installed all requirements, however, it can't find the RDKit:
ModuleNotFoundError: No module named 'rdkit'
To install it, I used:
sudo apt-get install python-rdkit librdkit1 rdkit-data
as per RDKitAny ideas, how to run this awesome library without Anaconda please?
The text was updated successfully, but these errors were encountered: