部署农业知识图谱开源项目报错

问题遇到的现象和发生背景

python 用django 运行项目时出现这一错误如何解决

运行结果及报错内容

Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "D:\python_tool\lib\site-packages\django\core\management_init.py", line 446, in execute_from_command_line
utility.execute()
File "D:\python_tool\lib\site-packages\django\core\management_init
.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "D:\python_tool\lib\site-packages\django\core\management\base.py", line 402, in run_from_argv
self.execute(*args, **cmd_options)
File "D:\python_tool\lib\site-packages\django\core\management\commands\runserver.py", line 74, in execute
super().execute(*args, **options)
File "D:\python_tool\lib\site-packages\django\core\management\base.py", line 448, in execute
output = self.handle(*args, **options)
File "D:\python_tool\lib\site-packages\django\core\management\commands\runserver.py", line 111, in handle
self.run(**options)
File "D:\python_tool\lib\site-packages\django\core\management\commands\runserver.py", line 118, in run
autoreload.run_with_reloader(self.inner_run, **options)
File "D:\python_tool\lib\site-packages\django\utils\autoreload.py", line 680, in run_with_reloader
start_django(reloader, main_func, *args, **kwargs)
File "D:\python_tool\lib\site-packages\django\utils\autoreload.py", line 661, in start_django
reloader.run(django_main_thread)
File "D:\python_tool\lib\site-packages\django\utils\autoreload.py", line 344, in run
self.run_loop()
File "D:\python_tool\lib\site-packages\django\utils\autoreload.py", line 350, in run_loop
next(ticker)
File "D:\python_tool\lib\site-packages\django\utils\autoreload.py", line 390, in tick
for filepath, mtime in self.snapshot_files():
File "D:\python_tool\lib\site-packages\django\utils\autoreload.py", line 411, in snapshot_files
for file in self.watched_files():
File "D:\python_tool\lib\site-packages\django\utils\autoreload.py", line 304, in watched_files
yield from iter_all_python_module_files()
File "D:\python_tool\lib\site-packages\django\utils\autoreload.py", line 120, in iter_all_python_module_files
return iter_modules_and_files(modules, frozenset(_error_files))
File "D:\python_tool\lib\site-packages\django\utils\autoreload.py", line 160, in iter_modules_and_files
if not path.exists():
File "D:\python_tool\lib\pathlib.py", line 1388, in exists
self.stat()
File "D:\python_tool\lib\pathlib.py", line 1194, in stat
return self._accessor.stat(self)
OSError: [WinError 123] 文件名、目录名或卷标语法不正确。: ''

看看你的读写文件模块路径是不是有问题,使用os.path.exist(路径) 看看python是否能找到该路径,大部分原因都是由于反斜杠\的原因导致找不到文件,在路径前加 r"路径" 试试