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

运行环境设置都是什么? #29

Closed
gaoda1234 opened this issue Apr 5, 2017 · 6 comments
Closed

运行环境设置都是什么? #29

gaoda1234 opened this issue Apr 5, 2017 · 6 comments

Comments

@gaoda1234
Copy link

用的centos 6 python3.5 结果各种出错

[root@localhost proxy_pool-master]# python -m Schedule.ProxyRefreshSchedule
Traceback (most recent call last):
File "/usr/local/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"main", mod_spec)
File "/usr/local/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/root/proxy_pool-master/Schedule/ProxyRefreshSchedule.py", line 19, in
from apscheduler.schedulers.blocking import BlockingScheduler
ImportError: No module named 'apscheduler'

是哪里没有装好吗?

@jhao104
Copy link
Owner

jhao104 commented Apr 5, 2017

现在暂时不支持py3
你是apscheduler这个包没有装。
你可以看下这个文件requirements.txt

@gaoda1234
Copy link
Author

支持python什么版本?

@jhao104
Copy link
Owner

jhao104 commented Apr 5, 2017

2

@gaoda1234
Copy link
Author

Traceback (most recent call last):
File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/root/proxy_pool-master/Schedule/ProxyRefreshSchedule.py", line 19, in
from apscheduler.schedulers.blocking import BlockingScheduler
File "/usr/lib64/python2.6/site-packages/apscheduler/schedulers/blocking.py", line 5, in
from apscheduler.schedulers.base import BaseScheduler, STATE_STOPPED
File "/usr/lib64/python2.6/site-packages/apscheduler/schedulers/base.py", line 177
with self._jobstores_lock, self._executors_lock:
^
SyntaxError: invalid syntax
帮忙看看这是什么错误吧,apscheduler安装好了还需要启动什么的吗?

@gaoda1234
Copy link
Author

python2.6 和APScheduler 3.2.0 兼容吗?新手问题多,多包涵。

@jhao104
Copy link
Owner

jhao104 commented Apr 6, 2017

每个三方库都有对应不同py版本的包。你下载的时候下py2版本的。如果你电脑上是py2,直接pip install 安装的就是py2对应的包

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

No branches or pull requests

2 participants