Python Intro - Compile and Install numpy library on Ubuntu
2015-04-10 17:54
387 查看
1. Get the source code of numpy
for example:
numpy-1.9.2.zip
2. Unzip source code zip file
unzip numpy-1.9.2.zip
3. build and install numpy
3.1 enter into numpy-1.9.2 directory
cd numpy-1.9.2
3.2 build numpy
python3 setup.py build --fcompiler=gcc
3.3 install numpy
python3 setup.py install
4. verify installation
#!/usr/local/bin/python3
try:
import numpy
except ImportError:
print("numpy is not installed")
print("numpy version = ", numpy.__version__);
for example:
numpy-1.9.2.zip
2. Unzip source code zip file
unzip numpy-1.9.2.zip
3. build and install numpy
3.1 enter into numpy-1.9.2 directory
cd numpy-1.9.2
3.2 build numpy
python3 setup.py build --fcompiler=gcc
3.3 install numpy
python3 setup.py install
4. verify installation
#!/usr/local/bin/python3
try:
import numpy
except ImportError:
print("numpy is not installed")
print("numpy version = ", numpy.__version__);
相关文章推荐
- ubuntu 下Python pip install numpy scipy and matplotlib
- How to Install and Use Python Pip on Ubuntu 14.04 and pip install pytz
- Install RL(Robotcs Library) on ubuntu and using
- How to Install OpenCV 3.0 and Python 3.4+ on Ubuntu
- compile and install ffmpeg on Ubuntu
- Install OpenCV 3.0 and Python 2.7+ on Ubuntu
- How to Install Python 3.3 on Ubuntu 13.04, 12.10 and 12.04
- Howto Install and Configure QtCreator on Ubuntu
- How to install and configure Apache and PHP on ubuntu
- Install Virtualbox and Vagrant on Ubuntu 14.04 VM
- Howto Install and Configure ROS on Ubuntu
- How to install and configure Apache, PHP, MySql and phpMyadmin on ubuntu
- Install Mplayer and Multimedia Codecs (libdvdcss2,w32codecs,w64codecs) on ubuntu 11.10
- How to install and configure Apache, PHP, MySql and phpMyadmin on ubuntu
- Install PostgreSql and PostGIS On Ubuntu Server
- Install and Configure Bacula on Ubuntu 14.04
- How-To: Install Google’s Android Eclipse plugin (and/or adb) on 64-bit Debian/Ubuntu
- How to Install and Run Network Simulator (NS2) v2.35 on Ubuntu 10.04
- Install Python 3.3.2 on Ubuntu 12.04
- Issue 71 - pymssql - Undefined symbols on Mac, CentOS, Redhat with pre-compiled build - A fast MS SQL Server client library for Python directly using C API instead of ODBC. It is Python DB-API 2.0 compliant. Works on Linux, *BSD, Solaris, Mac OS X and Win