pretrained-models.pytorch icon indicating copy to clipboard operation
pretrained-models.pytorch copied to clipboard

error: torch 0.1.12.post2 is installed but torch==1.2.0 is required by {'torchvision'}

Open mingji123 opened this issue 6 years ago • 1 comments

when i python setup.py install

Processing dependencies for pretrainedmodels==0.7.4 error: torch 0.1.12.post2 is installed but torch==1.2.0 is required by {'torchvision'}

mingji123 avatar Sep 08 '19 03:09 mingji123

Is that not fairly straightforward? You have an incredibly old version of pytorch installed, version 0.1.12 apparently, but the current version is like 1.3 or 1.4, and pretrainedmodels relies on torchvision, which itself relies on up-to-date pytorch. You need to install the latest version of pytorch

bradezard131 avatar Dec 26 '19 10:12 bradezard131