No module named import_export.admin

来源:5-2 xadmin的安装

qq_快乐你懂得_0

2017-10-22

 导入下载后的xadmin ,install six ,install future并且在seting中sys.path.insert(0,os.path.join(BASE_DIR,"extra_apps")),运行后提示:

  File "C:\Users\baixiyang\Envs\onflywebsite\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run

    autoreload.raise_last_exception()

  File "C:\Users\baixiyang\Envs\onflywebsite\lib\site-packages\django\utils\autoreload.py", line 249, in raise_last_exception

    six.reraise(*_exception)

  File "C:\Users\baixiyang\Envs\onflywebsite\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper

    fn(*args, **kwargs)

  File "C:\Users\baixiyang\Envs\onflywebsite\lib\site-packages\django\__init__.py", line 18, in setup

    apps.populate(settings.INSTALLED_APPS)

  File "C:\Users\baixiyang\Envs\onflywebsite\lib\site-packages\django\apps\registry.py", line 115, in populate

    app_config.ready()

  File "C:\Users\baixiyang\PycharmProjects\onlineWebSite\extra_apps\xadmin\apps.py", line 14, in ready

    self.module.autodiscover()

  File "C:\Users\baixiyang\PycharmProjects\onlineWebSite\extra_apps\xadmin\__init__.py", line 49, in autodiscover

    register_builtin_plugins(site)

  File "C:\Users\baixiyang\PycharmProjects\onlineWebSite\extra_apps\xadmin\plugins\__init__.py", line 41, in register_builtin_plugins

    [import_module('xadmin.plugins.%s' % plugin) for plugin in PLUGINS if plugin not in exclude_plugins]

  File "d:\program files\python2.7\Lib\importlib\__init__.py", line 37, in import_module

    __import__(name)

  File "C:\Users\baixiyang\PycharmProjects\onlineWebSite\extra_apps\xadmin\plugins\importexport.py", line 48, in <module>

    from import_export.admin import DEFAULT_FORMATS, SKIP_ADMIN_LOG, TMP_STORAGE_CLASS

ImportError: No module named import_export.admin


写回答

2回答

bobby

2017-10-23

pip install django-import-export

2
2
bobby
回复
你的转身
你截图我看看你的安装包以及具体报错呢
2018-03-06
共2条回复

王小多v

2017-10-22

pip安装django-import-export

0
0

Python3.6+django+xadmin,打造在线教育平台

【毕设】Python 2.7到3.6 完美适配,Django升级2.0

3677 学习 · 4038 问题

查看课程