1.- Download and Install Python3
wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
tar xvf Python-3.5.2
cd Python-3.5.2
./configure
make
make test
make install
2.- Installing dependencies
apt-get update
apt-get install python-setuptools python-pip python-dev python-virtualenv libblas-dev liblapack-dev libatlas-base-dev gfortran libfreetype6-dev pkg-config
3.- Installing scipy, numpy, matplotlib
pip3.5 install --upgrade pip
pip3.5 install scipy numpy matplotlib
4.- Testing
import numpy as np
import matplotlib.pyplot as plt
X = np.linspace(-np.pi, np.pi, 256, endpoint=True)
C, S = np.cos(X), np.sin(X)
plt.plot(X, C)
plt.plot(X, S)
plt.savefig('test.pdf')
Links:
Scipy Lectures
No hay comentarios:
Publicar un comentario