What version of Pyramid do I have and what's the best way to update?

佐手、 提交于 2019-12-10 03:26:39

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!