Skip to content

Commit

Permalink
Ubuntu16.04でのpipインストール手順について追記 ref #8
Browse files Browse the repository at this point in the history
Pythonのビルド時に `--with-zlib` オプションを渡さないと `get-pip.py` スクリプトが以下エラーになるので併せて追記した。

```
zipimport.ZipImportError: can't decompress data; zlib not available
```
  • Loading branch information
ryu22e committed Jun 5, 2016
1 parent 2468c9d commit bf7f077
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion source/1_install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Pythonのソースコードをビルドし、インストールします(:numr
$ wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
$ tar axvf ./Python-3.5.1.tgz
$ cd ./Python-3.5.1/
$ LDFLAGS="-L/usr/lib/x86_64-linux-gnu" ./configure --with-ensurepip
$ LDFLAGS="-L/usr/lib/x86_64-linux-gnu" ./configure --with-ensurepip --with-zlib
$ make
$ sudo make install
Expand All @@ -81,6 +81,20 @@ Pythonのソースコードをビルドし、インストールします(:numr
$ hash -r
$ python -V
Python 3.5.1
最後に、以下のコマンドでpipをインストールします。( :numref:`install-pip`)

.. _install-pip:

.. code-block:: bash
:caption: pipのインストール(最後のx.x.xにはインストール時のpipの最新バージョン番号が入ります)
$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python3 get-pip.py
$ rm get-pip.py
$ hash -r
$ pip -V
pip x.x.x from /usr/local/lib/python3.5/site-packages (python 3.5)
.. admonition:: コラム: インストール先の指定

Expand Down

0 comments on commit bf7f077

Please sign in to comment.