Jordan Industrial Observatory
Strengthening Industrial Intelligence for enhanced evidence-based policymaking

3. Other settings

These commands – note that they are run not as sudo but in supervisor mode “su -” – are to be run to install the MySQL driver for Python 2 and Pandas and OpenPyXL drivers for Python 3. Note that Python 2 came preinstalled with Python 3 on the Linode virtual machine. In case Python 2 (specifically Python 2.7) is not preinstalled, you would need to install that as well. Both Python 2 and Python 3 are being used in the Observatory.

su -
cd /usr
mkdir install
cd install
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py
apt-get install python-pip python-dev libmariadb-dev
apt-get install python2.7-mysqldb
apt-get install python3-pip
pip3 install pandas==1.2.4
pip3 install openpyxl
apt-get install sendmail

Leave a Comment

Your email address will not be published.