|
請問我做 linebotTranslate 專案的 makemigrations 有以下錯誤,可能是什麼原因呢 ? TKS !
-----------------------------
(base) D:\linebotTranslate>python manage.py makemigrations
Traceback (most recent call last): File "manage.py", line 15, in <module> execute_from_command_line(sys.argv) File "D:\Python\INST\lib\site-packages\django\core\management\__init__.py", li ne 381, in execute_from_command_line utility.execute() File "D:\Python\INST\lib\site-packages\django\core\management\__init__.py", li ne 375, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "D:\Python\INST\lib\site-packages\django\core\management\base.py", line 3 23, in run_from_argv self.execute(*args, **cmd_options) File "D:\Python\INST\lib\site-packages\django\core\management\base.py", line 3 61, in execute self.check() File "D:\Python\INST\lib\site-packages\django\core\management\base.py", line 3 90, in check include_deployment_checks=include_deployment_checks, File "D:\Python\INST\lib\site-packages\django\core\management\base.py", line 3 77, in _run_checks return checks.run_checks(**kwargs) File "D:\Python\INST\lib\site-packages\django\core\checks\registry.py", line 7 2, in run_checks new_errors = check(app_configs=app_configs) File "D:\Python\INST\lib\site-packages\django\core\checks\urls.py", line 40, i n check_url_namespaces_unique all_namespaces = _load_all_namespaces(resolver) File "D:\Python\INST\lib\site-packages\django\core\checks\urls.py", line 57, i n _load_all_namespaces url_patterns = getattr(resolver, 'url_patterns', []) File "D:\Python\INST\lib\site-packages\django\utils\functional.py", line 80, i n __get__ res = instance.__dict__[self.name] = self.func(instance) File "D:\Python\INST\lib\site-packages\django\urls\resolvers.py", line 584, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "D:\Python\INST\lib\site-packages\django\utils\functional.py", line 80, i n __get__ res = instance.__dict__[self.name] = self.func(instance) File "D:\Python\INST\lib\site-packages\django\urls\resolvers.py", line 577, in urlconf_module return import_module(self.urlconf_name) File "D:\Python\INST\lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "D:\linebotTranslate\linebotTranslate\urls.py", line 19, in <module> from translateapi import views File "D:\linebotTranslate\translateapi\views.py", line 8, in <module> from module import func File "D:\linebotTranslate\module\func.py", line 7, in <module> from translate import Translator ModuleNotFoundError: No module named 'translate' |