{"id":1546,"date":"2021-09-29T09:33:05","date_gmt":"2021-09-29T09:33:05","guid":{"rendered":"https:\/\/observatory.huzaifazoom.org\/?p=1546"},"modified":"2021-09-29T09:33:05","modified_gmt":"2021-09-29T09:33:05","slug":"3-other-settings","status":"publish","type":"post","link":"https:\/\/observatory.huzaifazoom.org\/ar\/2021\/09\/29\/3-other-settings\/","title":{"rendered":"3. Other settings"},"content":{"rendered":"\n<p>These commands &#8211; note that they are run not as sudo but in supervisor mode &#8220;su -&#8221; &#8211; 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.<\/p>\n\n\n<pre class=\"wp-block-code\"><code>su -\ncd \/usr\nmkdir install\ncd install\ncurl https:\/\/bootstrap.pypa.io\/pip\/2.7\/get-pip.py -o get-pip.py\npython get-pip.py\napt-get install python-pip python-dev libmariadb-dev\napt-get install python2.7-mysqldb\napt-get install python3-pip\npip3 install pandas==1.2.4\npip3 install openpyxl\napt-get install sendmail<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>These commands &#8211; note that they are run not as sudo but in supervisor mode &#8220;su -&#8221; &#8211; 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 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/observatory.huzaifazoom.org\/ar\/2021\/09\/29\/3-other-settings\/\"> <span class=\"screen-reader-text\">3. Other settings<\/span> \u0642\u0631\u0627\u0621\u0629 \u0627\u0644\u0645\u0632\u064a\u062f &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/observatory.huzaifazoom.org\/ar\/wp-json\/wp\/v2\/posts\/1546"}],"collection":[{"href":"https:\/\/observatory.huzaifazoom.org\/ar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/observatory.huzaifazoom.org\/ar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/observatory.huzaifazoom.org\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/observatory.huzaifazoom.org\/ar\/wp-json\/wp\/v2\/comments?post=1546"}],"version-history":[{"count":0,"href":"https:\/\/observatory.huzaifazoom.org\/ar\/wp-json\/wp\/v2\/posts\/1546\/revisions"}],"wp:attachment":[{"href":"https:\/\/observatory.huzaifazoom.org\/ar\/wp-json\/wp\/v2\/media?parent=1546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/observatory.huzaifazoom.org\/ar\/wp-json\/wp\/v2\/categories?post=1546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/observatory.huzaifazoom.org\/ar\/wp-json\/wp\/v2\/tags?post=1546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}