In the OS X 10.11 neighborhood [Homebrew with disturbing rumors](http://qiita.com/riocampos/items/525ec4b35744ad586c5a?utm_source=Qiita%E3%83%8B%E3%83%A5%E3%83%BC% E3% 82% B9 & utm_campaign = 95dd39bd56-Qiita_newsletter_177_10_14_2015 & utm_medium = email & utm_term = 0_e44feaa081-95dd39bd56-32764925), but it gets stuck. While being swayed by the error message
sudo chown -R $(whoami):admin /usr/local
Later, `brew update```,
`brew upgrade``` to return safely, now, install Python 3.x.
genki@iwaboos-MBA:~$ brew install python3
==> Installing dependencies for python3: pkg-config, sqlite, gdbm
==> Installing python3 dependency: pkg-config
:
:
genki@iwaboos-MBA:~$ python3 --version
Python 3.5.0
Apparently, I was able to install it. By the way, install the wrapper with the pip command Official page says `` `pip install qiita_v2, but since it is used in Python 3.x, Install with
pip3 install qiita_v2```.
genki@iwaboos-MBA:~$ pip3 install qiita_v2
Collecting qiita-v2
Downloading qiita_v2-0.1.0.tar.gz
Collecting pyyaml (from qiita-v2)
Downloading PyYAML-3.11.tar.gz (248kB)
100% |████████████████████████████████| 249kB 1.1MB/s
Collecting requests (from qiita-v2)
Downloading requests-2.8.1-py2.py3-none-any.whl (497kB)
100% |████████████████████████████████| 499kB 1.0MB/s
Building wheels for collected packages: qiita-v2, pyyaml
Running setup.py bdist_wheel for qiita-v2
Stored in directory: /Users/genki/Library/Caches/pip/wheels/3c/86/92/b7f144db7d5fa54acff97a656bcedaa61cba5ad69b8f809df1
Running setup.py bdist_wheel for pyyaml
Stored in directory: /Users/genki/Library/Caches/pip/wheels/fa/db/f6/dee55793d344f1706dc4a5a693298f0115241d1085cc212364
Successfully built qiita-v2 pyyaml
Installing collected packages: pyyaml, requests, qiita-v2
Successfully installed pyyaml-3.11 qiita-v2-0.1.0 requests-2.8.1
This completes the environment construction. It is OK if you can check the operation with the sample code etc.
Recommended Posts