我这里有一个非常简单的代码:
from flask import Flask
app = Flask(__name__)
if __name__ == '__main__':
app.run(debug=True)
Run Code Online (Sandbox Code Playgroud)
我第一次运行它并且它起作用了,然后 ctrl+c 不起作用,所以我自己杀死了 python 终端。然后我尝试再次运行它,但出现错误:
* Serving Flask app "untitled1" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production
environment.
Use a production WSGI server instead.
* Debug mode: on
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-
packages/spyderlib/widgets/externalshell/sitecustomize.py", line 699,
in runfile
execfile(filename, namespace)
File "/usr/lib/python3/dist-
packages/spyderlib/widgets/externalshell/sitecustomize.py", line 88,
in execfile
exec(compile(open(filename, 'rb').read(), filename, 'exec'), …Run Code Online (Sandbox Code Playgroud) 我看到了同样的问题,但对我没有用。
pip install PyOpenGL.3.1.1-cp34-cp34m-win_amd64.whl
Run Code Online (Sandbox Code Playgroud)
我对Numpy也有同样的问题
pip install numpy-1.11.1+mkl-cp34-cp34m-win_amd64.whl
Run Code Online (Sandbox Code Playgroud)
然后我得到:
numpy-1.11.1 + mkl-cp34-cp34m-win_amd64.whl在此平台上不受支持。在C://Users/myUsername/pip/pip.log中存储故障调试日志
我正在使用64位和Python 3.4.0
怎么了?
这个https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-favorites-list适用于 PHP。我想知道如何将它与 tweepy 或任何的python模块?