没有名为import\u export的模块,尽管它在sitepackages中

2024-07-03 06:20:31 发布

您现在位置:Python中文网/ 问答频道 /正文

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

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

我的python版本是2.7。在

这是mPython

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

这是我的搜索路径. 在

^{pr2}$

我真的看到了这样的进出口。在

enter image description here

但当我输入我的设置.py像这样,它说没有名为import\u 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',
)

我该怎么办?在


Tags: pipdjangohttpsimportgithubcomhomelib