LoginSignup
5
6

More than 1 year has passed since last update.

Proxy経由でCentOS6のpipを使えるようにする

Last updated at Posted at 2015-01-23

結論

easy_installを使ってpipを更新すると解決する。

CentOS 6のpipの問題

CentOS 6においてyumで入れられるpython-pipは、Proxy経由のsearchが通らないという問題がある。

なんとかしてみる

まず普通にpython-pipパッケージをインストールする。このとき依存パッケージとしてpython-setuptoolsが導入される

pip導入
yum install -y python-pip

easy_installを使って、pipを更新する。

pip更新
HTTP_PROXY=http://user:pass@proxy.example.com:port HTTPS_PROXY=$HTTP_PROXY easy_install --upgrade pip

おもむろに検索してみる

pip search Tinkerer --proxy http://user:pass@proxy.example.com:port

Tinkerer                  - Sphinx-based blogging engine
sphinxjp.themes.tinkerturquoise - Two column blogging theme tool for Tinkerer, based on turquoise color.
sphinxjp.themes.tinkerbelizehole - A single column blogging theme tool for Tinkerer, based on belizehole color.
Tinkerer-Localpost        - Localhost your Tinkerer blog
rutherford                - Atom feed for Tinkerer
sphinxjp.themes.tinkerbelizeholesidebar - A two column blogging theme tool for Tinkerer, based on belizehole color.
sphinxjp.themes.tinkerpress - A tinkerer theme like some famous blogging tool.
sphinxjp.themes.tinkeralizarin - A single column blogging theme tool for Tinkerer, based on alizarin color.
Twinkerer                 - tinkerer small extension to use twitter api.

これで勝つる

5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6