It is strongly recommended that you install python packages in a virtualenv. Here are some brief steps to install virtualenv
on linux:
Install pip
$ sudo apt-get install python-pip
## Install Python3.9 interpreter on ubuntu 22.04 | |
On a terminal just do the following steps: | |
Install dependencies: | |
sudo apt install tar build-essential checkinstall libreadline-dev \ | |
libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev \ | |
libbz2-dev openssl libffi-dev |
## Install Python3.7 interpreter on ubuntu 22.04 | |
On a terminal just do the following steps: | |
Install dependencies: | |
sudo apt install tar build-essential ch1eckinstall libreadline-dev \ | |
libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev \ | |
libbz2-dev openssl libffi-dev |
## Install Python3.8 interpreter on ubuntu 22.04 | |
On a terminal just do the following steps: | |
Install dependencies: | |
sudo apt install tar build-essential checkinstall libreadline-dev \ | |
libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev \ | |
libbz2-dev openssl libffi-dev |
# https://mail.python.org/pipermail/scipy-user/2011-May/029521.html | |
import numpy as np | |
from scipy.spatial import cKDTree as KDTree | |
from scipy.special import rel_entr | |
def KLdivergence(x, y): | |
"""Compute the Kullback-Leibler divergence between two multivariate samples. | |
Parameters |
## Install Python3.9 interpreter on ubuntu 18.04 | |
[From here](http://devmartin.com/blog/2016/04/creating-a-virtual-environment-with-python3.4-on-ubuntu-16.04-xenial-xerus/), we can pretty much follow the exact same procedure. | |
Only this I needed to on top of that blog was the `libffi-dev` system dependency. | |
On a terminal just do the following steps: | |
Install dependencies: |
/* | |
Taken and cribbed from blog.datalicious.com/free-download-all-australian-postcodes-geocod | |
May contain errors where latitude and longitude are off. Use at own non-validated risk. | |
*/ | |
SET NAMES utf8; | |
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; | |
DROP TABLE IF EXISTS postcodes_geo; |
## Install Python3.7 interpreter on ubuntu 18.04 | |
[From here](http://devmartin.com/blog/2016/04/creating-a-virtual-environment-with-python3.4-on-ubuntu-16.04-xenial-xerus/), we can pretty much follow the exact same procedure. | |
Only this I needed to on top of that blog was the `libffi-dev` system dependency. | |
On a terminal just do the following steps: | |
Install dependencies: |
On centos7 perform the following steps | |
sudo yum -y update | |
sudo yum groupinstall 'Development Tools' -y | |
sudo yum -y install yum-utils https://centos7.iuscommunity.org/ius-release.rpm | |
sudo yum -y install python36u | |
Check it was installed properly: |
It is strongly recommended that you install python packages in a virtualenv. Here are some brief steps to install virtualenv
on linux:
Install pip
$ sudo apt-get install python-pip
From here, we can pretty much follow the exact same procedure.
On a terminal just do the following steps:
Install dependencies:
sudo apt install build-essential checkinstall libreadline-gplv2-dev \