1

我是 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

这是我的系统路径。

/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 。

在此处输入图像描述

但是当我像这样在我的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',
)

我该怎么办?

4

0 回答 0