> 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 ?

Then any developer behind hex.pm can comment here? Why designed this
service not allowing people directly download from web ? someone might
say the github for httpotion is exposed you can download from github
for tarball, I'm not sure is that true for all hex.pm packages ? and
for all historical versions like
https://hex.pm/packages/httpotion/2.2.2 is there always a github
release for that? what if the original github user has deleted his
repo?



On Thu, Jul 7, 2016 at 11:38 PM, José Valim
<[email protected]> wrote:
> 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.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "elixir-lang-talk" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elixir-lang-talk/nm3GaX_tdLw/unsubscribe.
> To unsubscribe from this group and all its topics, 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.

-- 
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/CAJctwx4_umwoUJqX5fA4vc3JhMaGUvsR9-TKzyWZG_bWahrKUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to