ImportError: cannot import name _remove_dead_weakref
来源:4-8 organization modesl.py设计
有事烧纸
2018-03-04
Failed to get real commands on module "MxOnline": python process died with code 1: Traceback (most recent call last): File "D:\JetBrains\PyCharm 2017.3.1\helpers\pycharm\_jb_manage_tasks_provider.py", line 16, in <module> from django_manage_commands_provider._parser import parser File "D:\JetBrains\PyCharm 2017.3.1\helpers\pycharm\django_manage_commands_provider\_parser\parser.py", line 11, in <module> from django.core.management import ManagementUtility, get_commands File "E:\Envs\mxonline\lib\site-packages\django\core\management\__init__.py", line 10, in <module> from django.apps import apps File "E:\Envs\mxonline\lib\site-packages\django\apps\__init__.py", line 1, in <module> from .config import AppConfig File "E:\Envs\mxonline\lib\site-packages\django\apps\config.py", line 4, in <module> from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured File "E:\Envs\mxonline\lib\site-packages\django\core\exceptions.py", line 5, in <module> from django.utils.encoding import force_text File "E:\Envs\mxonline\lib\site-packages\django\utils\encoding.py", line 10, in <module> from django.utils.functional import Promise File "E:\Envs\mxonline\lib\site-packages\django\utils\functional.py", line 1, in <module> import copy File "D:\Python\Python27\Lib\copy.py", line 52, in <module> import weakref File "D:\Python\Python27\Lib\weakref.py", line 14, in <module> from _weakref import ( ImportError: cannot import name _remove_dead_weakref
写完organazation app后运行task报错
写回答
1回答
-
有事烧纸
提问者
2018-03-05
重新下载安装python27后问题解决
012018-03-06
相似问题