2017-07-25 08:40:51 -05:00
|
|
|
# Migration
|
2017-07-25 09:44:15 -04:00
|
|
|
|
2018-07-02 16:33:18 -04:00
|
|
|
!!! 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.
|
|
|
|
|
2018-07-18 17:40:08 -04:00
|
|
|
## Ubuntu
|
|
|
|
|
|
|
|
Remove the Python2 version of gunicorn:
|
2017-07-25 09:44:15 -04:00
|
|
|
|
2017-07-25 08:40:51 -05:00
|
|
|
```no-highlight
|
2018-07-18 17:40:08 -04:00
|
|
|
# pip uninstall -y gunicorn
|
2017-07-25 08:40:51 -05:00
|
|
|
```
|
|
|
|
|
2018-07-18 17:40:08 -04:00
|
|
|
Install Python3 and pip3, Python's package management tool:
|
2017-07-25 09:44:15 -04:00
|
|
|
|
2017-07-25 08:40:51 -05:00
|
|
|
```no-highlight
|
2018-07-18 17:40:08 -04:00
|
|
|
# apt-get update
|
|
|
|
# apt-get install -y python3 python3-dev python3-setuptools
|
|
|
|
# easy_install3 pip
|
2017-07-25 08:40:51 -05:00
|
|
|
```
|
|
|
|
|
2018-07-18 17:40:08 -04:00
|
|
|
Install the Python3 packages required by NetBox:
|
2017-07-25 09:44:15 -04:00
|
|
|
|
2017-07-25 08:40:51 -05:00
|
|
|
```no-highlight
|
|
|
|
# pip3 install -r requirements.txt
|
|
|
|
```
|
|
|
|
|
2018-07-18 17:40:08 -04:00
|
|
|
Replace gunicorn with the Python3 version:
|
2017-07-25 09:44:15 -04:00
|
|
|
|
|
|
|
```no-highlight
|
2017-07-25 08:40:51 -05:00
|
|
|
# pip3 install gunicorn
|
|
|
|
```
|
|
|
|
|
2018-07-18 17:40:08 -04:00
|
|
|
If using LDAP authentication, install the `django-auth-ldap` package:
|
2017-07-25 09:44:15 -04:00
|
|
|
|
|
|
|
```no-highlight
|
2018-07-18 17:40:08 -04:00
|
|
|
# pip3 install django-auth-ldap
|
2017-07-25 08:40:51 -05:00
|
|
|
```
|
2018-12-03 06:56:43 -08:00
|
|
|
|
|
|
|
If using Webhooks, install the `django-rq` package:
|
|
|
|
|
|
|
|
```no-highlight
|
|
|
|
# pip3 install django-rq
|
|
|
|
```
|