microsoft / unilm

Large-scale Self-supervised Pre-training Across Tasks, Languages, and Modalities
https://aka.ms/GeneralAI
MIT License
19.62k stars 2.5k forks source link

ERROR: Could not find a version that satisfies the requirement torch==1.7.1+cu110 #469

Open Ribo-Py opened 2 years ago

Ribo-Py commented 2 years ago

Describe the bug Model I am using (UniLM, MiniLM, LayoutLM ...):

The problem arises when using:

conda create -n trocr python=3.7 conda activate trocr git clone https://github.com/microsoft/unilm.git cd unilm cd trocr pip install pybind11 pip install -r requirements.txt pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" 'git+https://github.com/NVIDIA/apex.git'

A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Dod-o commented 2 years ago

Could you run the following command instead and let me know if it was successful or failed:

pip install pybind11
conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 -c pytorch
pip install timm==0.4.5
pip install natsort
pip install tensorboard
pip install nltk
pip install h5py
pip install numpy
pip install fastwer
pip install git+https://github.com/liminghao1630/fairseq.git
anikde commented 6 months ago
conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 -c pytorch

This worked for layoutLM model.