Migrating-to-Python3 479 B

123456789101112131415161718192021222324252627
  1. # Migration
  2. Remove Python 2 packages
  3. ```no-highlight
  4. # apt-get remove --purge -y python-dev python-pip
  5. ```
  6. Install Python 3 packages
  7. ```no-highlight
  8. # apt-get install -y python3 python3-dev python3-pip
  9. ```
  10. Install Python Packages
  11. ```no-highlight
  12. # cd /opt/netbox
  13. # pip3 install -r requirements.txt
  14. ```
  15. Gunicorn Update
  16. ```
  17. # pip uninstall gunicorn
  18. # pip3 install gunicorn
  19. ```
  20. Re-install LDAP Module (Optional if using LDAP for auth)
  21. ```
  22. sudo pip3 install django-auth-ldap
  23. ```