From 0991f94d0604f9f6fe48a2420ccf675606856f05 Mon Sep 17 00:00:00 2001 From: vanderaaj Date: Tue, 25 Jul 2017 08:40:51 -0500 Subject: [PATCH] How to migrate from Py2 to Py3 (#1355) * How to migrate from Py2 to Py3 The commands done to migrate Ubuntu from Py2 to Py3. * Update Migrating-to-Python3 --- docs/installation/Migrating-to-Python3 | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/installation/Migrating-to-Python3 diff --git a/docs/installation/Migrating-to-Python3 b/docs/installation/Migrating-to-Python3 new file mode 100644 index 000000000..09fe3657b --- /dev/null +++ b/docs/installation/Migrating-to-Python3 @@ -0,0 +1,27 @@ +# Migration +Remove Python 2 packages +```no-highlight +# apt-get remove --purge -y python-dev python-pip +``` + +Install Python 3 packages +```no-highlight +# apt-get install -y python3 python3-dev python3-pip +``` + +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 +```