gpt4 book ai didi

python - cherrypy 演示中缺少 tutorial.conf 文件

转载 作者:太空狗 更新时间:2023-10-30 01:54:25 25 4
gpt4 key购买 nike

我已经按照此处的说明安装了 cherryPy:

http://docs.cherrypy.org/en/latest/install.html

当我运行时:

python -m cherrypy.tutorial.tut01_helloworld

我收到以下错误:

Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/cherrypy/tutorial/tut01_helloworld.py", line 34, in <module>
cherrypy.quickstart(HelloWorld(), config=tutconf)
File "/usr/local/lib/python2.7/dist-packages/cherrypy/__init__.py", line 169, in quickstart
_global_conf_alias.update(config)
File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cpconfig.py", line 158, in update
reprconf.Config.update(self, config)
File "/usr/local/lib/python2.7/dist-packages/cherrypy/lib/reprconf.py", line 160, in update
config = Parser().dict_from_file(config)
File "/usr/local/lib/python2.7/dist-packages/cherrypy/lib/reprconf.py", line 232, in dict_from_file
self.read(file)
File "/usr/local/lib/python2.7/dist-packages/cherrypy/lib/reprconf.py", line 202, in read
fp = open(filename)
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/cherrypy/tutorial/tutorial.conf'

这是 CherryPy 遗漏/错误的东西还是我应该做的?

谢谢

最佳答案

遇到了同样的问题。在这里找到丢失的文件:

Python34\Lib\site-packages\PURELIB\cherrypy\tutorial

关于python - cherrypy 演示中缺少 tutorial.conf 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25283971/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com