当前位置: 移动技术网 > IT编程>脚本编程>Python > centos下pip安装

centos下pip安装

2018年03月30日  | 移动技术网IT编程  | 我要评论

红土镍矿,向井理和北川景子宣布结婚,汤芳艳图片

1,下载pip

[root@localhost ~]# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1738k 100 1738k 0 0 456k 0 0:00:03 0:00:03 --:--:-- 456k

2,安装pip

root@localhost ~]# chmod a+x get-pip.py

root@localhost ~]#python get-pip.py

Collecting pip
Downloading pip-9.0.3-py2.py3-none-any.whl (1.4MB)
100% |████████████████████████████████| 1.4MB 480kB/s
Collecting setuptools
Downloading setuptools-39.0.1-py2.py3-none-any.whl (569kB)
100% |████████████████████████████████| 573kB 2.2MB/s
Collecting wheel
Downloading wheel-0.30.0-py2.py3-none-any.whl (49kB)
100% |████████████████████████████████| 51kB 2.7MB/s
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-9.0.3 setuptools-39.0.1 wheel-0.30.0

3,测试安装

[root@localhost ~]# pip install numpy
Collecting numpy
Downloading numpy-1.14.2-cp27-cp27mu-manylinux1_x86_64.whl (12.1MB)
100% |████████████████████████████████| 12.1MB 82kB/s
Installing collected packages: numpy
Successfully installed numpy-1.14.2

[root@localhost ~]# python
Python 2.7.5 (default, Aug 4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>>

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网