我总是得到这个:
you can enable thread by --enable-thread ...
谁能告诉我具体怎么做? 谢谢。
2016-07-23 15:06:01 lock engine: pthread robust mutexes 2016-07-23 15:06:01 thunder lock: disabled (you can enable it with --thunder-lock) 2016-07-23 15:06:01 uwsgi socket 0 bound to UNIX address /var/sockets/hassanalvi.pythonanywhere.com/socket fd 7 2016-07-23 15:06:01 Python version: 2.7.6 (default, Jun 22 2015, 18:01:27) [GCC 4.8.2] 2016-07-23 15:06:01 *** Python threads support is disabled. You can enable it with --enable-threads *** 2016-07-23 15:06:01 Python main interpreter initialized at 0x146b720 *** Python threads support is disabled. You can enable it with --enable-threads ***
最佳答案
不幸的是 python anywhere 不支持线程是一个 web 服务器,check out this article.但是,如果您只想要 to run a task,则有一个修复方法.
关于python-2.7 - PythonAnywhere 如何启用线程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38512933/