mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-01 21:36:25 -06:00
How to migrate from Py2 to Py3
The commands done to migrate Ubuntu from Py2 to Py3.
This commit is contained in:
parent
64a34ced72
commit
56e6b06b16
27
docs/installation/Migrating-to-Python3
Normal file
27
docs/installation/Migrating-to-Python3
Normal file
@ -0,0 +1,27 @@
|
||||
# Migration
|
||||
Remove Python 2 packages
|
||||
```no-highlight
|
||||
# apt-get remove --purge -y python-dev python-pip libxml2-dev libxslt1-dev libffi-dev graphviz libpq-dev libssl-dev zlib1g-dev
|
||||
```
|
||||
|
||||
Install Python 3 packages
|
||||
```no-highlight
|
||||
# apt-get install -y python3 python3-dev python3-pip libxml2-dev libxslt1-dev libffi-dev graphviz libpq-dev libssl-dev zlib1g-dev
|
||||
```
|
||||
|
||||
Install Python Packages
|
||||
```no-highlight
|
||||
# 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
|
||||
```
|
Loading…
Reference in New Issue
Block a user