window安装python 的pip模块


在 python安装目录下 (我的安装目录C:\Python27)创建一个get-pip.py文件

复制下面的内容保存

#!/usr/bin/env python
import sys


def main():
    sys.exit(
        "You're using an outdated location for the get-pip.py script, please "
        "use the one available from https://bootstrap.pypa.io/get-pip.py"
    )


if __name__ == "__main__":
    main()

然后运行

python get-pip.py


安装pip 安装下面的路径和命令

easy_install pip


设置环境变量

C:\Python27\Scripts

验证

pip


安装ok

猜你喜欢

转载自blog.csdn.net/ruidongren/article/details/77096836