Welcome Derek!

Mix does not have a command to install packages outside the context of a
project. Elixir v1.4 will bring some of that functionality but generally
speaking you don't have global packages, they always belong to a project.



*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

On Fri, Jul 8, 2016 at 5:53 AM, Derek Cheung <[email protected]> wrote:

> Hi there,
>
> I am new elixir user with Python background, I though mix is a tool
> similar to Python's pip, wonder any one knows an equivalent to pip
> install ?
>
> from an empty directory, pip allows to install a package, then I can
> start with python interpreter to play this package on command line, it
> doesn't require a requirements.txt file or anything,
>
> $ pip install ipython --user            # I'm install  the ipython
> package to user's home dir
>
> With elixir mix, I'm not sure if I can install a package to home dir
> to play it in a iex shell ?
>
> ➸ mix install httpotion
> ** (Mix) The task "install" could not be found
>
> ➸ mix archive.install httpotion
> ** (Mix) Expected a local file path or a file URL.
> Usage: mix archive.install <path or url>
>
> I think hex.pm is an equivalent to python community's pypi index, however
>
> https://pypi.python.org/pypi/ipython from this page I can use browser
> download the source code in a tarball or other format
>
> https://hex.pm/packages/httpotion from this page, if without mix tool
> how do I download source code ?
>
>
> Thanks,
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-talk/a53caa6f-64e3-4a2a-80a5-487a191c63b9%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-talk/a53caa6f-64e3-4a2a-80a5-487a191c63b9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-talk/CAGnRm4JRHTEeVi9ugpQ5i%2BygPUZPeLbY%2BUQB97hjXb9-dQnbzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to