我試圖將我的應用程序部署到Amazon Web Service EBS中,當我打開它時,它一直提示我出現此錯誤。ImportError:沒有名爲pandas的模塊
ImportError at /safeplace/location/
No module named pandas
Request Method: GET
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']
我已經做了pip安裝熊貓,它說我已經滿足了要求。
哪個你的Django Python文件的一部分使用了熊貓,你能告訴我你是怎麼在Django項目,請用大熊貓。 –
@ niche.p我試圖用熊貓解析我的Rest api,因爲我的api在我的views.py中是Json格式。 –