Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导包的相对路径一直报错,怎么解决呢 #39

Open
itkuanggong opened this issue Oct 11, 2022 · 2 comments
Open

导包的相对路径一直报错,怎么解决呢 #39

itkuanggong opened this issue Oct 11, 2022 · 2 comments

Comments

@itkuanggong
Copy link

Traceback (most recent call last):
File "D:/PythonWorkspace/games/Games/cpgames/core/games/bunnybadger/bunnybadger.py", line 16, in
from ...utils import QuitGame
ValueError: attempted relative import beyond top-level package

@CharlesPikachu
Copy link
Owner

尝试切到cpgames目录再运行,或者直接安装cpgames之后运行,使用文档:
https://cpgames.readthedocs.io/en/latest/

@jinweideqqq
Copy link

一直是导包的相对路径一直报错,按照解决方式,并没有解决问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants