在CentOS下安装pip

简介:

Python和操作系统支持

Pip工作于CPython版本2.6,2.7,3.2,3.3,3.4以及pypy。

pip包含于Python

Python 2.7.9及之后(在python2系列),和Python 3.4和之后默认包含pip,因此你可能已经有了pip。


安装pip


  1. https://bootstrap.pypa.io/get-pip.py下载get-pip.py。

  2. 运行如下命令:

    1
    python get-pip.py


如何setuptools还没有安装,get-pip.py将会安装setuptools。


为了升级已经存在的setuptools,运行pip install -U setuptools。


此外,get-pip.py支持使用pip安装选项普通选项。以下是一些示例:


从本地的pip和setuptools副本安装:

1
python get-pip.py --no-index -- find -links= /local/copies


安装到用户目录:

1
python get-pip.py --user


从proxy后安装:

1
python get-pip.py --proxy=”[user: passwd @]proxy.server:port”


升级pip

1
pip  install  -U pip

 

原文地址:https://pip.pypa.io/en/latest/installing/








本文转自UltraSQL51CTO博客,原文链接:http://blog.51cto.com/ultrasql/1696024 ,如需转载请自行联系原作者





相关文章
|
3天前
|
存储 Linux 网络安全
Centos安装Docker的详细安装步骤,Docker相关组件:docker-ce-cli、docker-ce和containerd.io的区别
Centos安装Docker的详细安装步骤,Docker相关组件:docker-ce-cli、docker-ce和containerd.io的区别;CentOS7安装DockerCompose;Docker镜像仓库
|
1天前
|
Web App开发 测试技术 Shell
确保您已经安装了Selenium和ChromeDriver。您可以使用pip来安装Selenium:
确保您已经安装了Selenium和ChromeDriver。您可以使用pip来安装Selenium:
29 8
|
1天前
|
SQL Python
你需要在你的系统上安装`sqlmap`。这通常可以通过下载其源代码并编译,或者使用包管理器(如`apt`、`yum`或`pip`,但请注意,`pip`通常不直接提供`sqlmap`)来完成。
你需要在你的系统上安装`sqlmap`。这通常可以通过下载其源代码并编译,或者使用包管理器(如`apt`、`yum`或`pip`,但请注意,`pip`通常不直接提供`sqlmap`)来完成。
17 7
|
1天前
|
开发框架 机器人 .NET
我们需要安装`pybullet`模块,这可以通过pip来完成:
我们需要安装`pybullet`模块,这可以通过pip来完成:
16 6
|
1天前
|
Python
确保你已经安装了`dronekit`库。如果没有,你可以使用pip来安装:
确保你已经安装了`dronekit`库。如果没有,你可以使用pip来安装:
14 4
|
1天前
|
开发者 Python
确保你的Python环境中已经安装了`python-docx`模块。如果还没有安装,可以通过pip来安装:
确保你的Python环境中已经安装了`python-docx`模块。如果还没有安装,可以通过pip来安装:
8 1
|
6天前
|
开发者 Python
【Python】已解决:(Python3中pip无法安装urllib报错问题) ERROR: Could not find a version that satisfies the requireme
【Python】已解决:(Python3中pip无法安装urllib报错问题) ERROR: Could not find a version that satisfies the requireme
13 0
【Python】已解决:(Python3中pip无法安装urllib报错问题) ERROR: Could not find a version that satisfies the requireme
|
1天前
|
数据可视化 计算机视觉 异构计算
确保您已经安装了必要的库,包括`torch`、`torchvision`、`segmentation_models_pytorch`、`PIL`(用于图像处理)和`matplotlib`(用于结果可视化)。您可以使用pip来安装这些库:
确保您已经安装了必要的库,包括`torch`、`torchvision`、`segmentation_models_pytorch`、`PIL`(用于图像处理)和`matplotlib`(用于结果可视化)。您可以使用pip来安装这些库:
7 0
|
1天前
|
存储 数据挖掘 API
确保已经安装了PyPDF2模块。如果没有安装,可以使用pip进行安装:
确保已经安装了PyPDF2模块。如果没有安装,可以使用pip进行安装:
5 0
|
1天前
|
Python
确保你已经安装了`python-barcode`库。如果没有,可以通过pip来安装:
确保你已经安装了`python-barcode`库。如果没有,可以通过pip来安装:
6 0