Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 834f7c6

Browse files
authored
Fix torchdata install command: use index-url for pip install (#2218)
* Fix torchdata install command - use index-url * fix
1 parent c0d0685 commit 834f7c6

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

.circleci/unittest/linux/scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ printf "* Installing PyTorch\n"
3232

3333
printf "Installing torchdata nightly with portalocker\n"
3434
pip install "portalocker>=2.0.0"
35-
pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu
35+
pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu
3636

3737
printf "* Installing torchtext\n"
3838
python setup.py develop

.circleci/unittest/windows/scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ conda install -y -c "pytorch-${UPLOAD_CHANNEL}" ${CONDA_CHANNEL_FLAGS} pytorch c
2121

2222
printf "* Installing torchdata nightly with portalocker\n"
2323
pip install "portalocker>=2.0.0"
24-
pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu
24+
pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu
2525

2626
printf "* Installing pywin32_postinstall script\n"
2727
curl --output pywin32_postinstall.py https://raw.githubusercontent.com/mhammond/pywin32/main/pywin32_postinstall.py

.github/workflows/integration-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
-c nvidia "pytorch-${CHANNEL}"::pytorch[build="*${VERSION}*"] \
4848
"${CUDATOOLKIT}"
4949
printf "Installing torchdata nightly\n"
50-
python3 -m pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu
50+
python3 -m pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu
5151
python3 setup.py develop
5252
# Install integration test dependencies
5353
python3 -m pip --quiet install parameterized

.github/workflows/test-linux-cpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
"${CUDATOOLKIT}"
6060
printf "Installing torchdata nightly\n"
6161
python3 -m pip install "portalocker>=2.0.0"
62-
python3 -m pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu
62+
python3 -m pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu
6363
python3 setup.py develop
6464
python3 -m pip install parameterized
6565

.github/workflows/test-linux-gpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
"${CUDATOOLKIT}"
6565
printf "Installing torchdata nightly\n"
6666
python3 -m pip install "portalocker>=2.0.0"
67-
python3 -m pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu --quiet
67+
python3 -m pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu --quiet
6868
python3 setup.py develop
6969
python3 -m pip install parameterized --quiet
7070

.github/workflows/test-macos-cpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
"${CUDATOOLKIT}"
6767
printf "Installing torchdata nightly\n"
6868
python3 -m pip install "portalocker>=2.0.0"
69-
python3 -m pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu
69+
python3 -m pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu
7070
python3 setup.py develop
7171
python3 -m pip install parameterized
7272

.github/workflows/test-windows-cpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
cpuonly
6060
printf "Installing torchdata nightly\n"
6161
python -m pip install "portalocker>=2.0.0"
62-
python -m pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu
62+
python -m pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu
6363
6464
printf "* Installing pywin32_postinstall script\n"
6565
curl --output pywin32_postinstall.py https://raw.githubusercontent.com/mhammond/pywin32/main/pywin32_postinstall.py

packaging/install_torchdata.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if [ "$package_type" = "wheel" ]; then
2222
if [ "$channel" = "nightly" ]; then
2323
install_cmd="${install_cmd} --pre"
2424
fi
25-
install_channel="--extra-index-url https://download.pytorch.org/whl/${channel}/cpu"
25+
install_channel="--index-url https://download.pytorch.org/whl/${channel}/cpu"
2626
else
2727
install_cmd="conda install"
2828
install_channel="-c pytorch-${channel}"

0 commit comments

Comments
 (0)