プログラミング初心者ですpythonをaws cloud9使ってbitflyerの自動売買botを作成しようと頑張っています。
https://sshuhei.com/entry/channelbreakout/
上記サイトのコードを使ってみたいのですが、pybitflyerをインストールしたいのですがうまくいません。
基本的なことをミスっているのでしょうか。。?
発生している問題・エラーメッセージ
pip install pybitflyerを入力すると
Collecting pybitflyer
Using cached pybitflyer-0.1.9.tar.gz
Requirement already satisfied: requests in /usr/local/lib/python3.6/site-packages (from pybitflyer)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python3.6/site-packages (from requests->pybitflyer)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/site-packages (from requests->pybitflyer)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests->pybitflyer)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests->pybitflyer)
Installing collected packages: pybitflyer
Running setup.py install for pybitflyer ... error
Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;file='/tmp/pip-build-fyry3ez8/pybitflyer/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-ndsv2rbk-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/pybitflyer
copying pybitflyer/exception.py -> build/lib/pybitflyer
copying pybitflyer/pybitflyer.py -> build/lib/pybitflyer
copying pybitflyer/init.py -> build/lib/pybitflyer
running install_lib
creating /usr/lib/python3.6/dist-packages/pybitflyer
error: could not create '/usr/lib/python3.6/dist-packages/pybitflyer': Permission denied
----------------------------------------
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;file='/tmp/pip-build-fyry3ez8/pybitflyer/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-ndsv2rbk-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-fyry3ez8/pybitflyer/
と出てきて上記サイトのプログラミングコードを実行すると
Traceback (most recent call last):
File "/home/ec2-user/environment/trade.py", line 4, in <module>
import pybitflyer
ImportError: No module named pybitflyer
と出てきます。
バージョンは
Python 2.7.13
Python 3.6.2

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/03/27 04:36
2018/03/27 04:38
2018/03/27 04:41