From 421c4fab7dda431887026166ef767fab4f3174b0 Mon Sep 17 00:00:00 2001 From: Jiri BOROVEC Date: Wed, 7 Aug 2019 10:36:25 +0200 Subject: [PATCH] fix appveyor - install pytorch --- appveyor.yml | 12 ++++++++---- requirements.txt | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 40379cc588..57c6294d4d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,20 +12,22 @@ environment: # See: http://www.appveyor.com/docs/installed-software#python - - PYTHON: "C:\\Python35-x64" - PYTHON_VERSION: "3.5.x" - PYTHON_ARCH: "64" - TOXENV: "py35" + # - PYTHON: "C:\\Python35-x64" + # PYTHON_VERSION: "3.5.x" + # PYTHON_ARCH: "64" + # TOXENV: "py35" - PYTHON: "C:\\Python36-x64" PYTHON_VERSION: "3.6.x" PYTHON_ARCH: "64" TOXENV: "py36" + PIP_PYVER: "36" - PYTHON: "C:\\Python37-x64" PYTHON_VERSION: "3.7.x" PYTHON_ARCH: "64" TOXENV: "py37" + PIP_PYVER: "37" build: off @@ -43,6 +45,8 @@ install: # directly to master instead of just PR builds (or the converse). - SET PATH=%PYTHON%;%PYTHON%\\Scripts;%path% - pip install -U --user pip + - pip install "https://download.pytorch.org/whl/cu90/torch-1.1.0-cp%PIP_PYVER%-cp%PIP_PYVER%m-win_amd%PYTHON_ARCH%.whl" + pip install "https://download.pytorch.org/whl/cu90/torchvision-0.3.0-cp%PIP_PYVER%-cp%PIP_PYVER%m-win_amd%PYTHON_ARCH%.whl" - pip install -r requirements.txt - pip install -r ./tests/requirements.txt diff --git a/requirements.txt b/requirements.txt index 83e49f4a1d..86c02573bf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,5 +3,5 @@ tqdm==4.32.1 twine==1.13.0 numpy==1.16.4 torch>=1.1.0 -torchvision==0.3.0 +torchvision>=0.3.0 pandas \ No newline at end of file