2017年末現在ではpython3-pip/python2-pipとしてCygwin Setupからインストール可能
以下は古い記述
参考
http://chiranoura.nobody.jp/articles/2014-05-27_01_how_to_install_pip_and_setuptools/
Python2,3でpipを使えるようにしてみる
Cygwinのsetup.exeから下記インストール
$ easy_install-3.4 pip Searching for pip Reading https://pypi.python.org/simple/pip/ Best match: pip 9.0.1 Downloading https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9 Processing pip-9.0.1.tar.gz Writing /tmp/easy_install-wcfy31dj/pip-9.0.1/setup.cfg Running pip-9.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wcfy31dj/pip-9.0.1/egg-dist-tmp-hhzx8vk4 /usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching '.mailmap' warning: no previously-included files found matching '.travis.yml' warning: no previously-included files found matching '.landscape.yml' warning: no previously-included files found matching 'pip/_vendor/Makefile' warning: no previously-included files found matching 'tox.ini' warning: no previously-included files found matching 'dev-requirements.txt' warning: no previously-included files found matching 'appveyor.yml' no previously-included directories found matching '.github' no previously-included directories found matching '.travis' no previously-included directories found matching 'docs/_build' no previously-included directories found matching 'contrib' no previously-included directories found matching 'tasks' no previously-included directories found matching 'tests' creating /usr/lib/python3.4/site-packages/pip-9.0.1-py3.4.egg Extracting pip-9.0.1-py3.4.egg to /usr/lib/python3.4/site-packages Adding pip 9.0.1 to easy-install.pth file Installing pip script to /usr/bin Installing pip3.4 script to /usr/bin Installing pip3 script to /usr/bin Installed /usr/lib/python3.4/site-packages/pip-9.0.1-py3.4.egg Processing dependencies for pip Finished processing dependencies for pip $ pip --version pip 9.0.1 from /usr/lib/python3.4/site-packages/pip-9.0.1-py3.4.egg (python 3.4) $ pip3 --version pip 9.0.1 from /usr/lib/python3.4/site-packages/pip-9.0.1-py3.4.egg (python 3.4) $ easy_install-2.7 pip Searching for pip Reading https://pypi.python.org/simple/pip/ Best match: pip 9.0.1 Downloading https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9 Processing pip-9.0.1.tar.gz Writing /tmp/easy_install-fPZMOM/pip-9.0.1/setup.cfg Running pip-9.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-fPZMOM/pip-9.0.1/egg-dist-tmp-7tlJa7 /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching '.mailmap' warning: no previously-included files found matching '.travis.yml' warning: no previously-included files found matching '.landscape.yml' warning: no previously-included files found matching 'pip/_vendor/Makefile' warning: no previously-included files found matching 'tox.ini' warning: no previously-included files found matching 'dev-requirements.txt' warning: no previously-included files found matching 'appveyor.yml' no previously-included directories found matching '.github' no previously-included directories found matching '.travis' no previously-included directories found matching 'docs/_build' no previously-included directories found matching 'contrib' no previously-included directories found matching 'tasks' no previously-included directories found matching 'tests' creating /usr/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg Extracting pip-9.0.1-py2.7.egg to /usr/lib/python2.7/site-packages Adding pip 9.0.1 to easy-install.pth file Installing pip script to /usr/bin Installing pip2.7 script to /usr/bin Installing pip2 script to /usr/bin Installed /usr/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg Processing dependencies for pip Finished processing dependencies for pip $ pip3 --version pip 9.0.1 from /usr/lib/python3.4/site-packages/pip-9.0.1-py3.4.egg (python 3.4) $ pip --version pip 9.0.1 from /usr/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg (python 2.7)
現状pip3がPython3用,pipがPython2用
以下は古い記述
$ easy_install --version distribute 0.6.34 $ easy_install pip Searching for pip Reading http://pypi.python.org/simple/pip/ Best match: pip 1.5.6 Downloading https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz#md5=01026f87978932060cc86c1dc527903e Processing pip-1.5.6.tar.gz Writing /tmp/easy_install-WWVlux/pip-1.5.6/setup.cfg Running pip-1.5.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-WWVlux/pip-1.5.6/egg-dist-tmp-ca3ibE warning: no files found matching 'pip/cacert.pem' warning: no files found matching '*.html' under directory 'docs' warning: no previously-included files matching '*.rst' found under directory 'docs/_build' no previously-included directories found matching 'docs/_build/_sources' Adding pip 1.5.6 to easy-install.pth file Installing pip script to /usr/bin Installing pip2.7 script to /usr/bin Installing pip2 script to /usr/bin Installed /usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg Processing dependencies for pip Finished processing dependencies for pip
以下は以前の参考手順
http://d.hatena.ne.jp/norio515/20120404/1333544701
$ wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py --no-check-certificate $ python ez_setup.py (中略) Finished processing dependencies for setuptools==2.1 $ git clone https://github.com/pypa/pip.git $ cd pip/ $ python setup.py install (中略) Finished processing dependencies for pip==1.6.dev1 <|| pipの使い方 http://tdoc.info/blog/2014/01/15/pip.html パッケージに含まれているすべてのファイルを表示 >|| $ pip show -f パッケージ名