django - ImportError :No module named pandas -
i trying deploy app amazon web service ebs , when open it, keeps prompting me error.
importerror @ /safeplace/location/ no module named pandas request method: request url: http://usafe2.epnjkefarc.us-west- 2.elasticbeanstalk.com/safeplace/location/?lat=-37.877010&lng=145.044267 django version: 1.10.6 exception type: importerror exception value: no module named pandas exception location: /opt/python/current/app/api/views.py in <module>, line 15 python executable: /opt/python/run/venv/bin/python python version: 2.7.12 python path: ['/opt/python/run/venv/lib64/python2.7/site-packages', '/opt/python/run/venv/lib/python2.7/site-packages', '/opt/python/current/app', '', '/opt/python/run/baselinenv/local/lib64/python2.7/site-packages', '/opt/python/run/baselinenv/local/lib/python2.7/site-packages', '/opt/python/run/baselinenv/lib64/python2.7', '/opt/python/run/baselinenv/lib/python2.7', '/opt/python/run/baselinenv/lib64/python2.7/site-packages', '/opt/python/run/baselinenv/lib/python2.7/site-packages', '/opt/python/run/baselinenv/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7', '/usr/lib/python2.7']
i have did pip install pandas , says have satisfied requirements.
it pretty complicate pandas run in aws since trying retrieve data own api assume exists in models.py , data there. therefore can.
a = yourobject.objects.all() #make list contains object listattribute1 = [] listattrubute2 = [] x in a: listattribute1.append(x.yourattribute1) listattribute2.append(x.yourattribute2)
thus, can retrieve data api without using pandas way. more information.
check here.
Comments
Post a Comment