Guys, I search the forum about this but could not find anything. But using StaSh to pip install flask-restful fails as it has to run a setup file. Not sure what the setup file is doing, but it appears that the installation and dependencies get installed ok.
To test I just used the 'hello'a world' starter script below. Anyway, it fails. It sees flask_restful module, but something is not connected correctly.
Is there a alternative way I can install this module with StaSh? I really don't like asking without doing my own research, but this is sort of a black pit for me. The answer could be staring me in the face and I probably would not see it.
Thanks in advance...
btw, in this case I am looking for a solution for py3, but would be great to know if the same solution works under 2.7. If not does not matter so much, but plan to use one to run flask and the other to test query it.
from flask import Flask
from flask_restful import Resource, Api
app = Flask(__name__)
api = Api(app)
class HelloWorld(Resource):
def get(self):
return {'hello': 'world'}
api.add_resource(HelloWorld, '/')
if __name__ == '__main__':
app.run(debug=True)
