how to add a module to Anaconda
Question: This is what i get when i do "**_python -V_** "

**Python 2.7.11 :: Anaconda 2.4.0 (64-bit)** I usually use my terminal to play
with IDLE.But now i have also installed IDLE shell.

I tried _import sys;sys.path_ on both.They throw different paths. My Terminal
returned the path with anaconda in it.

I tried to install a module following these steps.

  1. python setup.py sdist

  2. sudo python setup.py install

Then i opened IDLE(shell).I was able to import and also use my module.

I wanna do the same in Anaconda..I tried using conda install filename.py.It
doesn't work. Please help.


Answer: There are several ways to add a module to Anaconda.

  * `conda install <package>`

  * `pip install <package>`

  * `python setup.py install` (if you are in the source directory, no sudo required if anaconda is in your home directory)

To make a package for others to use you will need to put it up where people
can access it like Github. You will have to make a config file (takes yaml
file manipulation) you can read up on how to make/distribute packages here.
<http://conda.pydata.org/docs/build_tutorials/pkgs.html>

Now to answer your question: There is a difference between using a file and
using a module/package. A file can just be imported in another python program
using `import filename` where filename.py is the name of the file you want to
use. to make that a module you want to take a look at the answer to this
question. [How to write a Python
module?](http://stackoverflow.com/questions/15746675/how-to-write-a-python-
module)

