python - unable to import gspread module despite being installed -


i unable run gspread on fabric script despite have installed gspread via pip. did miss out?

gangzhengs-macbook-pro:fabric mosesliao$ pip install gspread collecting gspread requirement satisfied (use --upgrade upgrade): requests>=2.2.1 in /usr/local/lib/python2.7/site-packages (from gspread) installing collected packages: gspread installed gspread-0.3.0 gangzhengs-macbook-pro:fabric mosesliao$ fab google_docs traceback (most recent call last):   file "/library/python/2.7/site-packages/fabric/main.py", line 658, in main     docstring, callables, default = load_fabfile(fabfile)   file "/library/python/2.7/site-packages/fabric/main.py", line 165, in load_fabfile     imported = importer(os.path.splitext(fabfile)[0])   file "/users/mosesliao/svn/chubi-trunk-project/fabric/fabfile.py", line 29, in <module>     import gspread importerror: no module named gspread gangzhengs-macbook-pro:fabric mosesliao$ pip install gspread requirement satisfied (use --upgrade upgrade): gspread in /usr/local/lib/python2.7/site-packages requirement satisfied (use --upgrade upgrade): requests>=2.2.1 in /usr/local/lib/python2.7/site-packages (from gspread) gangzhengs-macbook-pro:fabric mosesliao$ python -v python 2.7.11 

file "/library/python/2.7/site-packages/fabric/main.py", line 165, in load_fabfile 

and

requirement satisfied (use --upgrade upgrade): gspread in /usr/local/lib/python2.7/site-packages 

seems indicate there 2 python2.7 installations on machine. 1 "mac-like" , other 1 "linux-like". maybe using python mac default installation , pip other. @ least it's worth try...

which pip python 

Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -