"D:\Program Files (x86)\JetBrains\PyCharm 2016.3.2\bin\runnerw.exe" C:\Users\roc\Envs\mxonline\Scripts\python.exe E:/PycharmProjects/MxOnline/manage.py runserver 8000
Unhandled exception in thread started by <function wrapper at 0x00000000035AA7B8>
Traceback (most recent call last):
File "C:\Users\roc\Envs\mxonline\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "C:\Users\roc\Envs\mxonline\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "C:\Users\roc\Envs\mxonline\lib\site-packages\django\utils\autoreload.py", line 249, in raise_last_exception
six.reraise(*_exception)
File "C:\Users\roc\Envs\mxonline\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "C:\Users\roc\Envs\mxonline\lib\site-packages\django\__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\roc\Envs\mxonline\lib\site-packages\django\apps\registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "C:\Users\roc\Envs\mxonline\lib\site-packages\django\apps\config.py", line 90, in create
module = import_module(entry)
File "c:\python27\Lib\importlib\__init__.py", line 37, in import_module
__import__(name)
File "E:\PycharmProjects\MxOnline\extra_apps\xadmin\__init__.py", line 4, in <module>
from xadmin.sites import AdminSite, site
File "E:\PycharmProjects\MxOnline\extra_apps\xadmin\sites.py", line 3, in <module>
from future.utils import iteritems
ImportError: No module named future.utils
通过pip安装的xadmin就没事。手动安装的xadmin源码就报错。
请问老师,这是什么情况?谢谢老师。