How do I import a third party module in Python?
Question: I've found a third party module which I would like to use. How do I
technically import that module?

Particularly, I want to use a module called
[context_manager](https://github.com/cool-RR/GarlicSim-for-
Python-3.x/blob/master/garlicsim_py3/garlicsim/general_misc/context_manager.py).
obviously, I cannot just `import
garlicsim.general_misc.context_manager`because it won't find `garlicsim`. So
what should I write to import the thing?

**EDIT:** I'm using both Python 3.x and Python 2.x and I'd like to get answers
relevant to both versions.


Answer: In garlicsim's case you'd want to install it following garlicsim's
[installation
instructions](http://docs.garlicsim.org/intro/installation/python-3.x.html).
You could also download the code and in the right directory run `python
setup.py install` for this and almost any other library.

One note, since you may be new to python, is that that's a python 3 library.
If you're using python 2 (more likely if you don't know) it won't work right.
You'll want to install the python 2 [version](https://github.com/cool-
RR/GarlicSim).

