Skip to content

Commit b2a654a

Browse files
authored
Fix torch install instructions (meta-pytorch#1292)
* Fix torch install instructions * test
1 parent 775ce42 commit b2a654a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packaging/pkg_helpers.bash

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ setup_pip_pytorch_version() {
141141
export PYTORCH_VERSION="$(pip show torch | grep ^Version: | sed 's/Version: *//' | sed 's/+.\+//')"
142142
else
143143
pip_install "torch==$PYTORCH_VERSION$PYTORCH_VERSION_SUFFIX" \
144-
-f https://download.pytorch.org/whl/ \
145-
-f "https://download.pytorch.org/whl/${UPLOAD_CHANNEL}/"
144+
--index-url "https://download.pytorch.org/whl/${UPLOAD_CHANNEL}/${WHEEL_DIR}"
146145
fi
147146
}
148147

0 commit comments

Comments
 (0)