python-2.7 - PythonAnywhere 如何启用线程

标签 python-2.7 pythonanywhere

我总是得到这个:

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/

相关文章:

python - 如何让Django使用mysqlclient而不是mysqlDB

mysql - _mysql_exceptions.OperationalError : (1045, "Access denied for user ' <用户名>'@' ip-10-61-196-73.ec2.internal'(使用密码:YES)“)

MySQL - Pythonanywhere - 同时添加 2 个值

python - Collectstatic - 权限被拒绝,pythonanywhere bash 终端

python - 返回名称包含字符串的所有文件的函数

Python argparse 条件要求

python - Nose 工具中的 assert_raises() 并没有真正起作用

python - 我在哪里被限制?

python - urllib2.HTTPError : HTTP Error 410: Gone

google-app-engine - 上传 Google App Engine 应用程序时出错