I want to use a python module on my django website (matplotlib) that isn’t installed on the host server. Is this possible? I found some information about virtualenv, but I don’t know if this does what I want. Can someone help me find information about this?
Thanks in advance
Virtualenv may or may not be an option on your host, depending on how it invokes your application. In either case, building matplotlib and placing the resulting package in the same place your application lives is probably adequate. You can add that path to
sys.pathbefore importing it the first time if the pythonpath doesn’t already contain that location. RoughlyThe path should be the folder that contains the extra package, not the package directory itself