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

Can't install cdQA #346

Open
PepeZuco opened this issue Mar 2, 2020 · 19 comments
Open

Can't install cdQA #346

PepeZuco opened this issue Mar 2, 2020 · 19 comments

Comments

@PepeZuco
Copy link

PepeZuco commented Mar 2, 2020

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)

@infact
Copy link

infact commented Mar 4, 2020

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)

Which OS are you using?

@infact
Copy link

infact commented Mar 5, 2020

Try this if on Windows

pip install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

@infact
Copy link

infact commented Mar 10, 2020

Or if you are using anaconda, you can use the following command

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

@Kohimax
Copy link

Kohimax commented May 7, 2020

I have face the below issue (windows environment)
"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)"

@Asma-droid
Copy link

ANy solution please ??

@circuitsacul
Copy link

Has anyone found a solution

@AlekseyKorshuk
Copy link

You just need to replace torch==1.2.0 to torch==1.5.0 in requirement.txt after cloning the directory.
This works for me.

@sujsin77
Copy link

Try this if on Windows

pip install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

running above command gives following error
Looking in links: https://download.pytorch.org/whl/torch_stable.html
ERROR: Could not find a version that satisfies the requirement torch==1.2.0+cpu (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.4.0, 1.4.0+cpu, 1.4.0+cu92, 1.5.0, 1.5.0+cpu, 1.5.0+cu101, 1.5.0+cu92, 1.5.1, 1.5.1+cpu, 1.5.1+cu101, 1.5.1+cu92, 1.6.0, 1.6.0+cpu, 1.6.0+cu101, 1.7.0, 1.7.0+cpu, 1.7.0+cu101, 1.7.0+cu110, 1.7.1, 1.7.1+cpu, 1.7.1+cu101, 1.7.1+cu110, 1.8.0, 1.8.0+cpu, 1.8.0+cu101, 1.8.0+cu111)
ERROR: No matching distribution found for torch==1.2.0+cpu

@NaveenTime
Copy link

Anyone found a solution? I couldn't find one.

@Miru302
Copy link

Miru302 commented Jun 29, 2021

Anyone found a solution? I couldn't find one.

I encountered this problem as well, resolved by reinstalling 64bit version of python.

@angelopf
Copy link

Same issue

@NGeorgescu
Copy link

I know this is thread necromancy but it looks like 1.2.0 is only compatible with python 3.7 according to the page, so you may need to either A) use a virtual environment to install 3.7 or B) download torch 1.2.0 and edit the setup file to allow you to install on 3.8. The solution A is probably preferable considering that I believe 3.8 uses new keywords like "async" which break some packages, but YMMV.

@rockingkamal
Copy link

rockingkamal commented Oct 28, 2023

!pip install cdqa.

ERROR: Could not find a version that satisfies the requirement cdqa (from versions: none)
ERROR: No matching distribution found for cdqa

any kind of information please share it ... Thanks in advance.

@NGeorgescu
Copy link

!pip install cdqa.

ERROR: Could not find a version that satisfies the requirement cdqa (from versions: none) ERROR: No matching distribution found for cdqa

any kind of information please share it ... Thanks in advance.

Yeah it looks like it was pulled from pypi on a count of just being out of date.

You probably will get better mileage with LLMs. If you're dead-set on installing this package you should clone this repository and do pip install . (which pip installs the current directory)

@sujeets77
Copy link

Install cdqa manualy by following command
git clone https://github.com/cdqa-suite/cdQA.git
cd cdQA
Before installing change torch version to 1.13.0 from 1.2.0 in requirements.txt file inside cdQA folder then run below command
pip install -e .

@MohdSiddiq12
Copy link

cloned the repo, cd cdqa and pip install -e . got this error then
Obtaining file:///C:/Users/MohdS/OneDrive/Desktop/cdQA
Preparing metadata (setup.py) ... done
Collecting Flask==1.1.1 (from cdqa==1.3.9)
Using cached Flask-1.1.1-py2.py3-none-any.whl.metadata (4.4 kB)
Collecting flask_cors==3.0.8 (from cdqa==1.3.9)
Using cached Flask_Cors-3.0.8-py2.py3-none-any.whl.metadata (5.4 kB)
Collecting joblib==0.13.2 (from cdqa==1.3.9)
Using cached joblib-0.13.2-py2.py3-none-any.whl.metadata (4.5 kB)
Collecting pandas==0.25.0 (from cdqa==1.3.9)
Using cached pandas-0.25.0.tar.gz (12.6 MB)
Preparing metadata (setup.py) ... done
Collecting prettytable==0.7.2 (from cdqa==1.3.9)
Using cached prettytable-0.7.2.zip (28 kB)
Preparing metadata (setup.py) ... done
Collecting transformers==2.1.1 (from cdqa==1.3.9)
Using cached transformers-2.1.1-py3-none-any.whl.metadata (30 kB)
Collecting scikit_learn==0.21.2 (from cdqa==1.3.9)
Using cached scikit-learn-0.21.2.tar.gz (12.2 MB)
Preparing metadata (setup.py) ... done
Collecting tika==1.19 (from cdqa==1.3.9)
Using cached tika-1.19.tar.gz (24 kB)
Preparing metadata (setup.py) ... done
INFO: pip is looking at multiple versions of cdqa to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement torch==1.5.0 (from cdqa) (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1)
ERROR: No matching distribution found for torch==1.5.0

@NGeorgescu
Copy link

@MohdSiddiq12 : so, looking at the error, it means that your version of python can't find a version of torch that matches. If you look at the page for torch here, it shows in the sidebar that you need python >= 3.8.0

I imagine that your python version is probably 3.7 or earlier... OR you're accidentally running a python2 pip install or something.

@MohdSiddiq12
Copy link

@NGeorgescu i downgraded my python version using virtual environment as it was suggested that it might work in python previous version, my current version of python is 3.10
and after spending 2+ hours brainstorming to understand why it is not being installed and after spending time with various ai tools got to know that cdqa lib doesnt work in windows, it only works in ubuntu and linux

@Dinesh4242
Copy link

ERROR: Could not find a version that satisfies the requirement cdQA (from versions: none)
ERROR: No matching distribution found for cdQA

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