cdqa-suite / cdQA

⛔ [NOT MAINTAINED] An End-To-End Closed Domain Question Answering System.
https://cdqa-suite.github.io/cdQA-website/
Apache License 2.0
614 stars 191 forks source link

ModuleNotFoundError: No module named 'torch' #353

Open waterman1 opened 4 years ago

waterman1 commented 4 years ago

unable to run cdqa API on windows 10 system , getting error 'ModuleNotFoundError: No module named 'torch'. I have already installed torch 1.3 . But still this error shows up

import torch ModuleNotFoundError: No module named 'torch'

water@pf1l7trd20l6 MINGW64 ~/AppData/Local/Continuum/anaconda3/envs/api_cdqa $ python --version Python 3.7.4

KarFan commented 4 years ago

Same issue with same specs and version of Python.

----- Installing 'cdqa' ----- Collecting cdqa Downloading cdqa-1.3.9.tar.gz (45 kB) Collecting Flask==1.1.1 Downloading Flask-1.1.1-py2.py3-none-any.whl (94 kB) Collecting flask_cors==3.0.8 Downloading Flask_Cors-3.0.8-py2.py3-none-any.whl (14 kB) Collecting joblib==0.13.2 Downloading joblib-0.13.2-py2.py3-none-any.whl (278 kB) Collecting pandas==0.25.0 Downloading pandas-0.25.0-cp37-cp37m-win_amd64.whl (9.2 MB) Collecting prettytable==0.7.2 Downloading prettytable-0.7.2.tar.bz2 (21 kB) Collecting transformers==2.1.1 Downloading transformers-2.1.1-py3-none-any.whl (311 kB) Collecting scikit_learn==0.21.2 Downloading scikit_learn-0.21.2-cp37-cp37m-win_amd64.whl (5.9 MB) Collecting tika==1.19 Downloading tika-1.19.tar.gz (24 kB) ERROR: Could not find a version that satisfies the requirement torch==1.2.0 (from cdqa) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2) ERROR: No matching distribution found for torch==1.2.0 (from cdqa) ----- Failed to install 'cdqa' -----

ajagarao commented 4 years ago

conda install pytorch==1.2.0 torchvision==0.4.0 -c pytorch