CENTOS7安裝numpy,matplotlib


下載源碼並解壓numpy-1.9.0.zip

安裝相關工具。

[root@localhostmyhaspl]# yum install wget

[root@localhostmyhaspl]# yum install unzip

[root@localhostmyhaspl]# yum install gcc

[root@localhostnumpy-1.9.0]# yum install python-devel

安裝numpy。

[root@localhostmyhaspl]# unzip numpy-1.9.0.zip

[root@localhostmyhaspl]# cd numpy-1.9.0

[root@localhostnumpy-1.9.0]# python setup.py install

安裝完畢后,重啟 。

[root@localhostnumpy-1.9.0]# reboot

測試是否安裝成功,如果能導入numpy庫,表示安裝成功。

[myhaspl@localhost~]$ python

Python2.7.5 (default, Jun 17 2014, 18:11:42)

[GCC4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2

Type"help", "copyright", "credits" or"license" for more information.

>>>import numpy as np

>>>

安裝matplotlib

yum install python-matplotlib.x86_64


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM