I’m writing this down for Future Erica because I’ll inevitably have to do it again on other computers. If others find this useful, awesome.
Open the python interpreter1
Type the following in the interpreter
>>> import site >>> site.getusersitepackages()
Copy the path that gets printed to your screen. For me this path was
Exit the Python interpreter by pressing Ctrl+D
cd to the directory you just copied.
> cd /Users/ericajoy/Library/Python/2.7/lib/python/site-packages
If the directory doesn’t exist, create it, then cd to it.
> mkdir -p /Users/ericajoy/Library/Python/2.7/lib/python/site-packages > cd /Users/ericajoy/Library/Python/2.7/lib/python/site-packages
Download the usercustomize.py script to the site-packages directory
> curl -o usercustomize.py https://gist.github.com/anonymous/8892856/raw/2d65cabd8aa10cdad77dbf848e0b0b2ecbeb19ff/example.el
Open the Python interpreter
Enjoy the autocomplete goodness.
(Shout out to Chris Biscardi for doing the legwork for this.)
- It should be noted that I did all this on OS X. I cannot vouch for the effectiveness of this process on Windows. However, I wish you luck in your future switch to an operating system with a proper shell. [↩]