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

Windows操作系统无法使用 #74

Closed
xm9572 opened this issue Nov 8, 2021 · 2 comments
Closed

Windows操作系统无法使用 #74

xm9572 opened this issue Nov 8, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@xm9572
Copy link

xm9572 commented Nov 8, 2021

windows 下我下载了源码运行,根据错误,我安装了以下依赖:
pip install integv
pip install rich
pip install constant
然后还是报错:
Traceback (most recent call last):
File "D:\code\xvideos-dl-master\xvideos_dl\xvideos_dl.py", line 18, in
from . import constant as c
ImportError: attempted relative import with no known parent package

请教一下,windows 下应该怎么用啊?

@xm9572 xm9572 added the bug Something isn't working label Nov 8, 2021
@lonsty
Copy link
Owner

lonsty commented Nov 9, 2021

这个工具是需要安装后使用的:

# 通过 pip 安装
pip install -U xvideos-dl

# 然后直接敲命令使用
xvideos-dl <URL ...>

如果非要直接跑代码也行,需要手动安装依赖包:

pip install typer rich beautifulsoup4 cursor integv requests 'importlib_metadata<4.0'

然后改动下 xvideos_dl/__main__.py,在末尾添加以下两行:

if __name__ == "__main__":
    app()

之后可以这样使用(在项目根目录下):

python -m xvideos_dl <URL ...>

Repository owner deleted a comment from github-actions bot Nov 9, 2021
@lonsty lonsty closed this as completed Nov 10, 2021
@xm9572
Copy link
Author

xm9572 commented Nov 10, 2021

Thank you for your reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants