This document is relevant for: Inf1

Install Previous MXNet Neuron Releases for Amazon Linux (mxnet-neuron)#

This section will assist you to install previous Neuron releases.

# Install Python venv 
sudo dnf install -y python3.8-venv gcc-c++ 

# Create Python venv
python3.8 -m venv aws_neuron_venv_mxnet_inf1 

# Activate Python venv 
source aws_neuron_venv_mxnet_inf1/bin/activate 
python -m pip install -U pip 

# Install Jupyter notebook kernel
pip install ipykernel 
python3.8 -m ipykernel install --user --name aws_neuron_venv_mxnet_inf1 --display-name "Python (mx_neuron)"
pip install jupyter notebook
pip install environment_kernels

# Set pip repository pointing to the Neuron repository 
python -m pip config set global.extra-index-url https://pip.repos.neuron.amazonaws.com

# Install MXNet Neuron
wget https://aws-mx-pypi.s3.us-west-2.amazonaws.com/1.8.0/aws_mx-1.8.0.2-py2.py3-none-manylinux2014_x86_64.whl
pip install aws_mx-1.8.0.2-py2.py3-none-manylinux2014_x86_64.whl
python -m pip install mx_neuron==1.8.0.2.4.50.0 neuron-cc
# Install Python venv 
sudo dnf install -y python3.8-venv gcc-c++ 

# Create Python venv
python3.8 -m venv aws_neuron_venv_mxnet_inf1 

# Activate Python venv 
source aws_neuron_venv_mxnet_inf1/bin/activate 
python -m pip install -U pip 

# Install Jupyter notebook kernel
pip install ipykernel 
python3.8 -m ipykernel install --user --name aws_neuron_venv_mxnet_inf1 --display-name "Python (mx_neuron)"
pip install jupyter notebook
pip install environment_kernels

# Set pip repository pointing to the Neuron repository 
python -m pip config set global.extra-index-url https://pip.repos.neuron.amazonaws.com

# Install MXNet Neuron
wget https://aws-mx-pypi.s3.us-west-2.amazonaws.com/1.8.0/aws_mx-1.8.0.2-py2.py3-none-manylinux2014_x86_64.whl
pip install aws_mx-1.8.0.2-py2.py3-none-manylinux2014_x86_64.whl
python -m pip install mx_neuron==1.8.0.2.4.40.0 neuron-cc
# Install Python venv 
sudo dnf install -y python3.8-venv gcc-c++ 

# Create Python venv
python3.8 -m venv aws_neuron_venv_mxnet_inf1 

# Activate Python venv 
source aws_neuron_venv_mxnet_inf1/bin/activate 
python -m pip install -U pip 

# Install Jupyter notebook kernel
pip install ipykernel 
python3.8 -m ipykernel install --user --name aws_neuron_venv_mxnet_inf1 --display-name "Python (mx_neuron)"
pip install jupyter notebook
pip install environment_kernels

# Set pip repository pointing to the Neuron repository 
python -m pip config set global.extra-index-url https://pip.repos.neuron.amazonaws.com

# Install MXNet Neuron
wget https://aws-mx-pypi.s3.us-west-2.amazonaws.com/1.8.0/aws_mx-1.8.0.2-py2.py3-none-manylinux2014_x86_64.whl
pip install aws_mx-1.8.0.2-py2.py3-none-manylinux2014_x86_64.whl
python -m pip install mx_neuron==1.8.0.2.4.40.0 neuron-cc

This document is relevant for: Inf1