Global package installation is also a constant source of problems when they 
conflict. That isn't to say that there aren't scenarios where it's handy. 
However great care needs to be taken when it comes to make code globally 
available as we don't want to end up in dependency hell.

It's also worth pointing out that as a compiled language Elixir is simply a 
different beast than Python. To my knowledge it is not possible to 
consolidate protocols outside of a mix project, and without such 
consolidation there is literally no point in benchmarking anything. If you 
have a mix project to consolidate protocols, then you may as well just add 
your benchmarking library as a dev dependency.

On Thursday, July 7, 2016 at 11:53:12 PM UTC-4, Derek Cheung 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/76ccb498-263a-4ca5-aab0-a16acffce046%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to