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.
|
|
|
|
|
2017-07-25 08:40:51 -05:00
|
|
|
Remove Python 2 packages
|
2017-07-25 09:44:15 -04:00
|
|
|
|
2017-07-25 08:40:51 -05:00
|
|
|
```no-highlight
|
|
|
|
# apt-get remove --purge -y python-dev python-pip
|
|
|
|
```
|
|
|
|
|
|
|
|
Install Python 3 packages
|
2017-07-25 09:44:15 -04:00
|
|
|
|
2017-07-25 08:40:51 -05:00
|
|
|
```no-highlight
|
|
|
|
# apt-get install -y python3 python3-dev python3-pip
|
|
|
|
```
|
|
|
|
|
|
|
|
Install Python Packages
|
2017-07-25 09:44:15 -04:00
|
|
|
|
2017-07-25 08:40:51 -05:00
|
|
|
```no-highlight
|
|
|
|
# cd /opt/netbox
|
|
|
|
# pip3 install -r requirements.txt
|
|
|
|
```
|
|
|
|
|
|
|
|
Gunicorn Update
|
2017-07-25 09:44:15 -04:00
|
|
|
|
|
|
|
```no-highlight
|
2017-07-25 08:40:51 -05:00
|
|
|
# pip uninstall gunicorn
|
|
|
|
# pip3 install gunicorn
|
|
|
|
```
|
|
|
|
|
2017-07-25 09:44:15 -04:00
|
|
|
Re-install LDAP Module (optional if using LDAP for auth)
|
|
|
|
|
|
|
|
```no-highlight
|
2017-07-25 08:40:51 -05:00
|
|
|
sudo pip3 install django-auth-ldap
|
|
|
|
```
|