How do I install python modules, or use a different version of python? (with sage) - ASKSAGE: Sage Q&A Forum

I have several versions of python, as well as the one included with sage. I want to use the svgwrite module in /Library/Frameworks/Python.framework/Versions/2.7/bin/python , but sage does not have it. I want to run the following (combined with some output from sage) import svgwrite dwg = svgwrite.D…