1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
netbox-community-netbox/docs/installation/migrating-to-python3.md

664 B

Migration

!!! warning Beginning with v2.5, NetBox will no longer support Python 2. It is strongly recommended that you upgrade to Python 3 as soon as possible.

Remove Python 2 packages

# apt-get remove --purge -y python-dev python-pip

Install Python 3 packages

# apt-get install -y python3 python3-dev python3-pip

Install Python Packages

# cd /opt/netbox
# pip3 install -r requirements.txt

Gunicorn Update

# pip uninstall gunicorn
# pip3 install gunicorn

Re-install LDAP Module (optional if using LDAP for auth)

sudo pip3 install django-auth-ldap