I'm trying to use this Python API in my project: https://github.com/Rami114/Stockfighter
I keep getting an ImportError: No module named Stockfighter.Api
My text editor is SublimeText 3, and my code looks like this:
from Stockfighter.Api import StockFighterApi
I also tried import it using sys:
import sys
sys.path.append('/Users/myname/Desktop/PythonGames/Stockfighter-master/Stockfighter')
from Stockfighter.Api import StockFighterApi
I download the api from github in terminal using this code:
$ python3 -m pip install git+https://github.com/Rami114/Stockfighter.git
This is the resulting out from that installation
Collecting git+https://github.com/Rami114/Stockfighter.git Cloning https://github.com/Rami114/Stockfighter.git to /var/folders/cg/2k70brh54y51hm65qh4dhwch0000gn/T/pip-w9ptx96u-build Requirement already satisfied (use --upgrade to upgrade): Stockfighter==0.1 from git+https://github.com/Rami114/Stockfighter.git in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/Stockfighter-0.1-py3.5.egg Requirement already satisfied (use --upgrade to upgrade): requests in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.9.1-py3.5.egg (from Stockfighter==0.1) Requirement already satisfied (use --upgrade to upgrade): ws4py in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ws4py-0.3.4-py3.5.egg (from Stockfighter==0.1)
I'm really new to both python and github, so any help is appreciated. Thank you!