Skip to content
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

installation problem/ running interface python : No module named 'torch' (How to install torch and its dependencies properly?) #225

Open
Sinsilcobio opened this issue May 10, 2024 · 1 comment

Comments

@Sinsilcobio
Copy link

Hi,

I followed the readme to install the DiffDock-L as follows:
conda env create --file environment.yml
conda activate diffdock

However, when I tried running the "interface" python I faced the following error.
Could you provide some guidance on how to fix this issue?

Thank you

python -m inference --config default_inference_args.yaml --protein_ligand_csv data/protein_ligand_example.csv --out_dir results/user_predictions_small
Traceback (most recent call last):
File "/home/sajad/mambaforge/envs/diffdock/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/sajad/mambaforge/envs/diffdock/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/media/sajad/WD/E/Tools/DiffDock-L/DiffDock/inference.py", line 20, in
import torch
ModuleNotFoundError: No module named 'torch'

@Sinsilcobio Sinsilcobio changed the title istallation problem/ running interface python : No module named 'torch' (How to install torch and its dependecies properly?) installation problem/ running interface python : No module named 'torch' (How to install torch and its dependencies properly?) May 10, 2024
@tornikeo
Copy link

Means you don't have this package . Follow it, while inside that diffdock environment that you created.

You'll also need to have a recent-enough GPU to run this in reasonable time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants