Skip to main content

IT - Install certbot with Python3.6.x, venv and pip on Debian 7/8

Please ensure that your python version is >= 3.6.0 before proceed

python3.6 --version

Remove prior version of certbot

sudo apt-get remove certbot
sudo rm -rf /opt/certbot

Set up a Python 3.6 virtual environment

sudo python3.6 -m venv /opt/certbot/
sudo /opt/certbot/bin/pip install --upgrade pip

Install Certbot and prepare the Certbot command

sudo /opt/certbot/bin/pip install certbot certbot-apache
sudo ln -s /opt/certbot/bin/certbot /usr/bin/certbot