最新消息:20190717 VPS服务器:Vultr新加坡,WordPress主题:大前端D8,统一介绍入口:关于

【记录】通过源码方式安装pip

Python crifan 4473浏览 0评论

参考:

pip Installation instructions

找到源码地址:

http://pypi.python.org/packages/source/p/pip/pip-1.0.tar.gz

下载得到pip-1.0.tar.gz,解压,然后到windows的cmd中运行setup.py install:

D:\tmp\dev_tools\python\pip\pip-1.0.tar\pip-1.0\pip-1.0>setup.py install
running install
running bdist_egg
running egg_info
writing pip.egg-info\PKG-INFO
writing top-level names to pip.egg-info\top_level.txt
writing dependency_links to pip.egg-info\dependency_links.txt
writing entry points to pip.egg-info\entry_points.txt
reading manifest file 'pip.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs\_build'
no previously-included directories found matching 'docs\_build\_sources'
writing manifest file 'pip.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\pip
copying pip\backwardcompat.py -> build\lib\pip
copying pip\basecommand.py -> build\lib\pip
copying pip\baseparser.py -> build\lib\pip
copying pip\download.py -> build\lib\pip
copying pip\exceptions.py -> build\lib\pip
copying pip\index.py -> build\lib\pip
copying pip\locations.py -> build\lib\pip
copying pip\log.py -> build\lib\pip
copying pip\req.py -> build\lib\pip
copying pip\runner.py -> build\lib\pip
copying pip\util.py -> build\lib\pip
copying pip\venv.py -> build\lib\pip
copying pip\_pkgutil.py -> build\lib\pip
copying pip\__init__.py -> build\lib\pip
creating build\lib\pip\commands
copying pip\commands\bundle.py -> build\lib\pip\commands
copying pip\commands\completion.py -> build\lib\pip\commands
copying pip\commands\freeze.py -> build\lib\pip\commands
copying pip\commands\help.py -> build\lib\pip\commands
copying pip\commands\install.py -> build\lib\pip\commands
copying pip\commands\search.py -> build\lib\pip\commands
copying pip\commands\uninstall.py -> build\lib\pip\commands
copying pip\commands\unzip.py -> build\lib\pip\commands
copying pip\commands\zip.py -> build\lib\pip\commands
copying pip\commands\__init__.py -> build\lib\pip\commands
creating build\lib\pip\vcs
copying pip\vcs\bazaar.py -> build\lib\pip\vcs
copying pip\vcs\git.py -> build\lib\pip\vcs
copying pip\vcs\mercurial.py -> build\lib\pip\vcs
copying pip\vcs\subversion.py -> build\lib\pip\vcs
copying pip\vcs\__init__.py -> build\lib\pip\vcs
creating build\bdist.win32
creating build\bdist.win32\egg
creating build\bdist.win32\egg\pip
copying build\lib\pip\backwardcompat.py -> build\bdist.win32\egg\pip
copying build\lib\pip\basecommand.py -> build\bdist.win32\egg\pip
copying build\lib\pip\baseparser.py -> build\bdist.win32\egg\pip
creating build\bdist.win32\egg\pip\commands
copying build\lib\pip\commands\bundle.py -> build\bdist.win32\egg\pip\commands
copying build\lib\pip\commands\completion.py -> build\bdist.win32\egg\pip\commands
copying build\lib\pip\commands\freeze.py -> build\bdist.win32\egg\pip\commands
copying build\lib\pip\commands\help.py -> build\bdist.win32\egg\pip\commands
copying build\lib\pip\commands\install.py -> build\bdist.win32\egg\pip\commands
copying build\lib\pip\commands\search.py -> build\bdist.win32\egg\pip\commands
copying build\lib\pip\commands\uninstall.py -> build\bdist.win32\egg\pip\commands
copying build\lib\pip\commands\unzip.py -> build\bdist.win32\egg\pip\commands
copying build\lib\pip\commands\zip.py -> build\bdist.win32\egg\pip\commands
copying build\lib\pip\commands\__init__.py -> build\bdist.win32\egg\pip\commands
copying build\lib\pip\download.py -> build\bdist.win32\egg\pip
copying build\lib\pip\exceptions.py -> build\bdist.win32\egg\pip
copying build\lib\pip\index.py -> build\bdist.win32\egg\pip
copying build\lib\pip\locations.py -> build\bdist.win32\egg\pip
copying build\lib\pip\log.py -> build\bdist.win32\egg\pip
copying build\lib\pip\req.py -> build\bdist.win32\egg\pip
copying build\lib\pip\runner.py -> build\bdist.win32\egg\pip
copying build\lib\pip\util.py -> build\bdist.win32\egg\pip
creating build\bdist.win32\egg\pip\vcs
copying build\lib\pip\vcs\bazaar.py -> build\bdist.win32\egg\pip\vcs
copying build\lib\pip\vcs\git.py -> build\bdist.win32\egg\pip\vcs
copying build\lib\pip\vcs\mercurial.py -> build\bdist.win32\egg\pip\vcs
copying build\lib\pip\vcs\subversion.py -> build\bdist.win32\egg\pip\vcs
copying build\lib\pip\vcs\__init__.py -> build\bdist.win32\egg\pip\vcs
copying build\lib\pip\venv.py -> build\bdist.win32\egg\pip
copying build\lib\pip\_pkgutil.py -> build\bdist.win32\egg\pip
copying build\lib\pip\__init__.py -> build\bdist.win32\egg\pip
byte-compiling build\bdist.win32\egg\pip\backwardcompat.py to backwardcompat.pyc
byte-compiling build\bdist.win32\egg\pip\basecommand.py to basecommand.pyc
byte-compiling build\bdist.win32\egg\pip\baseparser.py to baseparser.pyc
byte-compiling build\bdist.win32\egg\pip\commands\bundle.py to bundle.pyc
byte-compiling build\bdist.win32\egg\pip\commands\completion.py to completion.pyc
byte-compiling build\bdist.win32\egg\pip\commands\freeze.py to freeze.pyc
byte-compiling build\bdist.win32\egg\pip\commands\help.py to help.pyc
byte-compiling build\bdist.win32\egg\pip\commands\install.py to install.pyc
byte-compiling build\bdist.win32\egg\pip\commands\search.py to search.pyc
byte-compiling build\bdist.win32\egg\pip\commands\uninstall.py to uninstall.pyc
byte-compiling build\bdist.win32\egg\pip\commands\unzip.py to unzip.pyc
byte-compiling build\bdist.win32\egg\pip\commands\zip.py to zip.pyc
byte-compiling build\bdist.win32\egg\pip\commands\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\pip\download.py to download.pyc
byte-compiling build\bdist.win32\egg\pip\exceptions.py to exceptions.pyc
byte-compiling build\bdist.win32\egg\pip\index.py to index.pyc
byte-compiling build\bdist.win32\egg\pip\locations.py to locations.pyc
byte-compiling build\bdist.win32\egg\pip\log.py to log.pyc
byte-compiling build\bdist.win32\egg\pip\req.py to req.pyc
byte-compiling build\bdist.win32\egg\pip\runner.py to runner.pyc
byte-compiling build\bdist.win32\egg\pip\util.py to util.pyc
byte-compiling build\bdist.win32\egg\pip\vcs\bazaar.py to bazaar.pyc
byte-compiling build\bdist.win32\egg\pip\vcs\git.py to git.pyc
byte-compiling build\bdist.win32\egg\pip\vcs\mercurial.py to mercurial.pyc
byte-compiling build\bdist.win32\egg\pip\vcs\subversion.py to subversion.pyc
byte-compiling build\bdist.win32\egg\pip\vcs\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\pip\venv.py to venv.pyc
byte-compiling build\bdist.win32\egg\pip\_pkgutil.py to _pkgutil.pyc
byte-compiling build\bdist.win32\egg\pip\__init__.py to __init__.pyc
creating build\bdist.win32\egg\EGG-INFO
copying pip.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying pip.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying pip.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
copying pip.egg-info\entry_points.txt -> build\bdist.win32\egg\EGG-INFO
copying pip.egg-info\not-zip-safe -> build\bdist.win32\egg\EGG-INFO
copying pip.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
creating dist
creating 'dist\pip-1.0-py2.7.egg' and adding 'build\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)
Processing pip-1.0-py2.7.egg
creating d:\tmp\wordpress\devroot\python27\lib\site-packages\pip-1.0-py2.7.egg
Extracting pip-1.0-py2.7.egg to d:\tmp\wordpress\devroot\python27\lib\site-packages
Adding pip 1.0 to easy-install.pth file
Installing pip-script.py script to D:\tmp\WordPress\DevRoot\Python27\Scripts
Installing pip.exe script to D:\tmp\WordPress\DevRoot\Python27\Scripts
Installing pip.exe.manifest script to D:\tmp\WordPress\DevRoot\Python27\Scripts
Installing pip-2.7-script.py script to D:\tmp\WordPress\DevRoot\Python27\Scripts
Installing pip-2.7.exe script to D:\tmp\WordPress\DevRoot\Python27\Scripts
Installing pip-2.7.exe.manifest script to D:\tmp\WordPress\DevRoot\Python27\Scripts

Installed d:\tmp\wordpress\devroot\python27\lib\site-packages\pip-1.0-py2.7.egg
Processing dependencies for pip==1.0
Finished processing dependencies for pip==1.0

D:\tmp\dev_tools\python\pip\pip-1.0.tar\pip-1.0\pip-1.0>

即可成功安装pip。

转载请注明:在路上 » 【记录】通过源码方式安装pip

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
18 queries in 0.079 seconds, using 9.01MB memory