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
mmahacek 232e6f5076 #2635 - Update documentation for python3 update (#2636)
Add reference to reinstalling the django-rq module
2018-12-03 09:56:43 -05:00

865 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.

Ubuntu

Remove the Python2 version of gunicorn:

# pip uninstall -y gunicorn

Install Python3 and pip3, Python's package management tool:

# apt-get update
# apt-get install -y python3 python3-dev python3-setuptools
# easy_install3 pip

Install the Python3 packages required by NetBox:

# pip3 install -r requirements.txt

Replace gunicorn with the Python3 version:

# pip3 install gunicorn

If using LDAP authentication, install the django-auth-ldap package:

# pip3 install django-auth-ldap

If using Webhooks, install the django-rq package:

# pip3 install django-rq