mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
PR to remove Manywheel Scripts: https://github.com/pytorch/builder/pull/2017 Test PR : https://github.com/pytorch/pytorch/pull/138325 Pull Request resolved: https://github.com/pytorch/pytorch/pull/138103 Approved by: https://github.com/malfet
27 lines
483 B
Bash
Executable File
27 lines
483 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
yum install -y wget git
|
|
|
|
rm -rf /usr/local/cuda*
|
|
|
|
# Install Anaconda
|
|
if ! ls /py
|
|
then
|
|
echo "Miniconda needs to be installed"
|
|
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
|
|
bash ~/miniconda.sh -b -p /py
|
|
else
|
|
echo "Miniconda is already installed"
|
|
fi
|
|
|
|
export PATH="/py/bin:$PATH"
|
|
|
|
# Anaconda token
|
|
if ls /remote/token
|
|
then
|
|
source /remote/token
|
|
fi
|
|
|
|
conda install -y conda-build anaconda-client
|