我一直在尝试安装SerpentAI。我在一台Mac上,并且我已经遵循了所有的步骤。我有所有的依赖项,但是当我使用关键字serpent时,它会给我这个错误。
我知道我丢失了一个配置文件,但我不知道在哪里可以找到它,也不知道如何解决这个问题。
任何以serpent开头的命令都会给我这个错误。
下面是错误
Traceback (most recent call last):
File "/anaconda3/bin/serpent", line 11, in <module>
load_entry_point('SerpentAI==2018.1.2', 'console_scripts', 'serpent')()
File "/anaconda3/lib/python3.6/site- packages/pkg_resources/__init__.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2691, in load_entry_point
return ep.load()
File "/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2322, in load
return self.resolve()
File "/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2328, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/anaconda3/lib/python3.6/site-packages/SerpentAI-2018.1.2-py3.6.egg/serpent/serpent.py", line 11, in <module>
from serpent.utilities import clear_terminal, display_serpent_logo, is_linux, is_macos, is_windows, is_unix, wait_for_crossbar
File "/anaconda3/lib/python3.6/site-packages/SerpentAI-2018.1.2-py3.6.egg/serpent/utilities.py", line 8, in <module>
from serpent.config import config
File "/anaconda3/lib/python3.6/site-packages/SerpentAI-2018.1.2-py3.6.egg/serpent/config.py", line 18, in <module>
raise Exception("Configuration file not found at: 'config/config.yml'...")
Exception: Configuration file not found at: 'config/config.yml'...所以我想我找到了问题所在,您可以克隆GitHub代码库,它将具有配置文件。然后,当您运行pip install时,它将克隆一个版本,而该版本将没有配置文件。
发布于 2018-11-03 21:22:17
在按照所有安装指南步骤运行serpent vi sual_debugger时,我也遇到了同样的问题。
试着运行serpent setup,它可能会解决你的问题。这对我的情况很有帮助。
https://stackoverflow.com/questions/51744243
复制相似问题