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

ModuleNotFoundError: No module named 'torch' #353

Open
waterman1 opened this issue Mar 18, 2020 · 2 comments
Open

ModuleNotFoundError: No module named 'torch' #353

waterman1 opened this issue Mar 18, 2020 · 2 comments

Comments

@waterman1
Copy link

waterman1 commented Mar 18, 2020

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
Copy link

KarFan commented Apr 21, 2020

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
Copy link

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

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

3 participants