请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

No module named import_export.admin

 导入下载后的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


正在回答 回答被采纳积分+3

2回答

bobby 2017-10-23 10:58:29

pip install django-import-export

2 回复 有任何疑惑可以回复我~
  • 依赖库全部安装成功,但还是报错No module named import_export.admin
    回复 有任何疑惑可以回复我~ 2018-03-05 15:58:40
  • bobby 回复 你的转身 #2
    你截图我看看你的安装包以及具体报错呢
    回复 有任何疑惑可以回复我~ 2018-03-06 10:23:07
王小多v 2017-10-22 22:44:37

pip安装django-import-export

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信