Skip to content

Commit cce4a8c

Browse files
authored
Cherry pick #1292 (#1293)
* Fix torch install instructions * test
1 parent 7bfd689 commit cce4a8c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packaging/pkg_helpers.bash

+1-2
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)