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

安装环境运行报错 #1

Closed
lzkgbld opened this issue Sep 4, 2020 · 1 comment
Closed

安装环境运行报错 #1

lzkgbld opened this issue Sep 4, 2020 · 1 comment

Comments

@lzkgbld
Copy link

lzkgbld commented Sep 4, 2020

使用的系统是centos7.64位,Python版本3.6.8。
已经按照文档要求先使用pip install -r requirements.txt安装相关环境,但是最后Python mian.py的时候报错。
File "main.py", line 2, in
from script import init_scripts
File "/home/VideoCrawlerEngine-master/script/init.py", line 5, in
from utils import utility_package, split_name_version
File "/home/VideoCrawlerEngine-master/utils.py", line 12, in
from debugger import dbg
File "/home/VideoCrawlerEngine-master/debugger.py", line 3, in
from contextvars import ContextVar
ModuleNotFoundError: No module named 'contextvars'

@jiangliuer-beep
Copy link

使用的系统是centos7.64位,Python版本3.6.8。
已经按照文档要求先使用pip install -r requirements.txt安装相关环境,但是最后Python mian.py的时候报错。
File "main.py", line 2, in
from script import init_scripts
File "/home/VideoCrawlerEngine-master/script/init.py", line 5, in
from utils import utility_package, split_name_version
File "/home/VideoCrawlerEngine-master/utils.py", line 12, in
from debugger import dbg
File "/home/VideoCrawlerEngine-master/debugger.py", line 3, in
from contextvars import ContextVar
ModuleNotFoundError: No module named 'contextvars'

contextvars包安装错误,你可以用匹配手动安装一下,使用pip install contextvars, 或者使用pip install contextvars=XXX,其中的XXX代表包的版本,可以从requirements.txt中看到。

@ZSAIm ZSAIm closed this as completed Feb 11, 2021
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