没有名为import_export的模块,尽管它位于site-packages中

时间:2017-04-05 16:24:01

标签: python django django-import-export

我是Django的初学者,我通过在我的服务器上安装pip来使用它。

https://github.com/django-import-export/django-import-export

我的python版本是2.7。

这是m PYTHONPATH

-bash-4.2$ echo $PYTHONPATH
/home/khantthulinn/lib/python2.7:/home/khantthulinn/.local/lib/python2.7/site-packages

这是我的sys.path。

/home/khantthulinn/webapps/mmspeaker/lib/python2.7/Django-1.8.14-py2.7.egg
/home/khantthulinn/webapps/mmspeaker/lib/python2.7
/home/khantthulinn/webapps/mmspeaker/lib/python2.7/site-packages
/home/khantthulinn/lib/python2.7/pip-8.1.2-py2.7.egg
/home/khantthulinn/lib/python2.7
/home/khantthulinn/webapps/mmspeaker/myproject
/usr/lib64/python27.zip
/usr/lib64/python2.7
/usr/lib64/python2.7/plat-linux2
/usr/lib64/python2.7/lib-tk
/usr/lib64/python2.7/lib-old
/usr/lib64/python2.7/lib-dynload
/home/khantthulinn/.local/lib/python2.7/site-packages
/usr/lib64/python2.7/site-packages
/usr/lib64/python2.7/site-packages/PIL
/usr/lib64/python2.7/site-packages/geos
/usr/lib/python2.7/site-packages

我真的在这里看到 import_export

enter image description here

但是,当我像这样导入 settings.py 时,它会说没有名为 import_export 的模块。

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'rest_framework',
    'provider',
    'provider.oauth2',
    'push_notifications',
    'import_export',
)

我该怎么办?

0 个答案:

没有答案