一、 scipy,numpy,matplotlib

sudo apt-get install python-scipy

sudo apt-get install python-numpy

sudo apt-get install python-matplotlib

python

import scipy

import numpy

import pylab

scipy.test()

numpy.test()

pylab.test()

二、pip

1、先说一下什么是pip

pip 是“A tool for installing and managing Python packages.”,也就是说pip是python的软件安装工具

2、下面介绍怎么在linux下安装pip

下载pip到/usr/local/src

# cd /usr/local/src

# wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate

如果提示:-bash: wget: command not found

那么安装wget,执行如下:

# yum -y install wget

解夺安装pip

# tar -xzvf pip-1.5.4.tar.gz

# cd pip-1.5.4

# python setup.py install

如果安装报下面的错:

Traceback (most recent call last):

File "setup.py", line 6, in

from setuptools import setup, find_packages

ImportError: No module named setuptools

那么就要先安装setuptools包

(1)下载setuptools包

# wget http://pypi.python.org/packages/source/s/setuptools/setuptools-2.0.tar.gz

(2)解压setuptools包

# tar zxvf setuptools-2.0.tar.gz

# cd setuptools-2.0

(3)编译setuptools

# python setup.py build

(4)开始执行setuptools安装

# python setup.py install

安装完成setuptools包后,在重新执行:

# cd /usr/local/src/pip-1.5.4

# python setup.py install

至此pip安装完成

3、linux下pip使用参数

# pip --help

Usage:

pip [options]

Commands:

install Install packages.

uninstall Uninstall packages.

freeze Output installed packages in requirements format.

list List installed packages.

show Show information about installed packages.

search Search PyPI for packages.

wheel Build wheels from your requirements.

zip DEPRECATED. Zip individual packages.

unzip DEPRECATED. Unzip individual packages.

bundle DEPRECATED. Create pybundles.

help Show help for commands.

General Options:

-h, --help Show help.

-v, --verbose Give more output. Option is additive, and can be used up to 3 times.

-V, --version Show version and exit.

-q, --quiet Give less output.

--log-file Path to a verbose non-appending log, that only logs failures. This log is active by default at /root/.pip/pip.log.

--log Path to a verbose appending log. This log is inactive by default.

--proxy Specify a proxy in the form [user:passwd@]proxy.server:port.

--timeout Set the socket timeout (default 15 seconds).

--exists-action Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup.

--cert Path to alternate CA bundle.

原文:http://www.cnblogs.com/awishfullyway/p/5868745.html

python2.7安装matplotlib_Ubuntu-Python2.7安装 scipy,numpy,matplotlib 和pip相关推荐

  1. Ubuntu-Python2.7安装 scipy,numpy,matplotlib

    sudo apt-get install python-scipy sudo apt-get install python-numpy sudo apt-get install python-matp ...

  2. Ubuntu-Python安装 scipy,numpy,matplotlib

    sudo apt-get install python-scipy sudo apt-get install python-numpy sudo apt-get install python-matp ...

  3. python查看安装包的版本scipy,numpy,matplotlib等

    查看python的版本很简单: python -V or python --version 查看python安装的宏包版本,以scipy为例,其他包一样 先进入python里,即在终端中输入pytho ...

  4. linux安装python2和3版本_Windows下安装Python2和Python3双版本

    现在大家常用的桌面操作系统有:Windows.Mac OS.Ubuntu,其中Mac OS 和 ubuntu上都会自带Python.这里我们只介绍下Windows(我用的Win10)环境下的pytho ...

  5. Win7系统中同时安装了python2.x和python3.x,如何设置默认启动的python版本

    现在Windows系统同时兼容了python2和python3的两个版本,但安装的时候会默认使用python2.x或python3.x的版本,却不是自己想要的那个默认的版本.那么,如何设置自己想要的默 ...

  6. CentOS6.8 安装/升级Python2.7.x,并安装最新setuptools、pip、fabric程序总结

    最终靠谱的可借鉴文档: 1.python官网 2.http://lovesoo.org/python-fabric-yuan-cheng-zi-dong-bu-shu-jian-jie.html 3. ...

  7. centos7自带python版本_CentOS7保留默认Python版本并安装更新Python2和Python3共存

    CentOS 7 默认的python版本是python2.7.5.因为yum依赖于默认的python版本的缘由,所以要先保留默认版本,并修改yum文件头部后,才能开始安装更新python2和pytho ...

  8. Mac下安装配置Python2和Python3并相互切换使用

    安装Python2 学习python中有什么不懂的地方,小编这里推荐加小编的python学习群:895 817 687有任何不懂的都可以在里面交流,还有很好的视频教程pdf学习资料,大家一起学习交流! ...

  9. python2.X在linux上的安装

    方法一:下载好后源码包再安装 1.下载源代码 http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tar.bz22. 安装$ tar –jxvf P ...

最新文章

  1. QThreadPool类和QtConcurrent命名空间
  2. linux 文本编辑命令grep sed awk
  3. Linux SPI总线和设备驱动架构之三:SPI控制器驱动
  4. 摆脱加卡他卡_如何通过三个简单的步骤摆脱“故事卡地狱”。
  5. csvn(apache+svn)管理工具搭建
  6. android7.0 netd与netlink的framework,kernel通信流程
  7. VMware虚拟机安装WinXP出现错误output error file to the following location A:\GHOSTERR.TXT
  8. linux输入法安装指南,Linux 中文输入法安装
  9. 014-JVM-查看class文件的工具Binary viewer、ue、classlib Bytecode viewer
  10. html 打印 a4 像素,精确打印A4纸张排版HTML
  11. 网安必备技能||操作系统中间件安全加固手册(附下载地址)
  12. ServerPropertiesAutoConfiguration.class cannot be opened because it does not exist
  13. Adobe illustrator/Ai 2019 软件安装包
  14. Android记录5--关于Android云测试的小思考
  15. 关于tink的碰撞检测类【2】
  16. iOS App完整项目
  17. 超人气代码格式化工具prettier
  18. 从 Eligibility 浅谈英中翻译消除歧义的重要性
  19. 第一范式第二范式第三范式学习笔记
  20. 2023年复旦大学电子信息(计算机)考研成功经验分享

热门文章

  1. 利用scipy包计算表格线的峰值,还原表格得到表格结构
  2. 利用numpy生成各种波
  3. 【每日SQL打卡】​​​​​​​​​​​​​​​DAY 25丨不同性别每日分数总计【难度中等】​
  4. 【每日SQL打卡】​​​​​​​​​​​​​​​DAY 8丨判断三角形【难度简单】
  5. lamp mysql5.0_CentOS 5/6 LAMP(Apache MySQL PHP)一键安装脚本
  6. skywalking(4)
  7. 实用的java代码生成器,开箱即用(基于mybatisplus的AutoGenerator)
  8. 春晚之后的采访和豆瓣投名状
  9. python总结教程_python基础教程总结10——文件
  10. JAVAWEB入门第一篇