2017-07-25 08:40:51 -05:00
|
|
|
# Migration
|
2017-07-25 09:44:15 -04:00
|
|
|
|
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
|
|
|
|
```
|