株のシステムトレードをしよう - 1から始める株自動取引システムの作り方

株式をコンピュータに売買させる仕組みを少しずつ作っていきます。できあがってから公開ではなく、書いたら途中でも記事として即掲載して、後から固定ページにして体裁を整える方式で進めていきます。

kabusapiをpipで入れられるようにする その2

入っているように見えて入っていない、これは何故だ。。。

!pip install pip install git+https://github.com/dogwood008/python-kabusapi@feature/add_setup.py
Collecting git+https://github.com/dogwood008/python-kabusapi@feature/add_setup.py
  Cloning https://github.com/dogwood008/python-kabusapi (to revision feature/add_setup.py) to /tmp/pip-req-build-7jxt6ata
  Running command git clone -q https://github.com/dogwood008/python-kabusapi /tmp/pip-req-build-7jxt6ata
  Running command git checkout -b feature/add_setup.py --track origin/feature/add_setup.py
  Switched to a new branch 'feature/add_setup.py'
  Branch 'feature/add_setup.py' set up to track remote branch 'feature/add_setup.py' from 'origin'.
Requirement already satisfied: pip in /home/jovyan/.local/share/virtualenvs/work-IBzAhvIc/lib/python3.8/site-packages (21.0.1)
Collecting install
  Downloading install-1.3.4-py3-none-any.whl (3.1 kB)
Requirement already satisfied: requests in /home/jovyan/.local/share/virtualenvs/work-IBzAhvIc/lib/python3.8/site-packages (from kabusapi==1.0.0) (2.25.1)
Requirement already satisfied: websockets in /home/jovyan/.local/share/virtualenvs/work-IBzAhvIc/lib/python3.8/site-packages (from kabusapi==1.0.0) (8.1)
Requirement already satisfied: certifi>=2017.4.17 in /home/jovyan/.local/share/virtualenvs/work-IBzAhvIc/lib/python3.8/site-packages (from requests->kabusapi==1.0.0) (2020.12.5)
Requirement already satisfied: idna<3,>=2.5 in /opt/conda/lib/python3.8/site-packages (from requests->kabusapi==1.0.0) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/jovyan/.local/share/virtualenvs/work-IBzAhvIc/lib/python3.8/site-packages (from requests->kabusapi==1.0.0) (1.26.4)
Requirement already satisfied: chardet<5,>=3.0.2 in /home/jovyan/.local/share/virtualenvs/work-IBzAhvIc/lib/python3.8/site-packages (from requests->kabusapi==1.0.0) (4.0.0)
Installing collected packages: install
Successfully installed install-1.3.4
import kabusapi
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-7-a62873fdc3d9> in <module>
     38 
---> 39 import kabusapi

ModuleNotFoundError: No module named 'kabusapi'

(C) 2020 dogwood008 禁無断転載 不許複製 Reprinting, reproducing are prohibited.