问题
I'm using Pyramid and I'm wondering how I can check what version I'm currently using. Also, how can I update my Pyramid?
回答1:
To know which version of pyramid you have, you can run this in a python console :
>>> import pkg_resources
>>> pkg_resources.get_distribution("pyramid").version
To update, you could run pip install --upgrade pyramid
, but in order to update pyramid and all its dependencies, I advice you to replace your current virtualenv and replace it with a new one, with a fresh install of pyramid. The installation procedure in the documentation should help you if you are not sure about how to do that.
来源:https://stackoverflow.com/questions/10888577/what-version-of-pyramid-do-i-have-and-whats-the-best-way-to-update