3 ms·
>You can get the library directly from PyPI: >pip install click Well... no you cannot. See the page: https://pypi.python.org/pypi/click https://pypi.python.or
by bru 12y ago
>You can get the library directly from PyPI:
>pip install click
Well... no you cannot. See the page: https://pypi.python.org/pypi/click https://pypi.python.org/pypi/click
The package hasn't been uploaded yet. However one can install it straight from the git repo:
> pip install git+ssh://git@github.com:mitsuhiko/click.git
- philtar 12y ago> pip install git+ssh://git@github.com:mitsuhiko/click.git Can someone comment regarding using pip like that? Is it fine to put this on req.txt? Any best practices somewhere?
- toyg 12y agoThat syntax is usually meant for packages that you want to edit after installation (with -e). If you plan to release your stuff, the dependencies in your req.txt should be as pinned as possible. The classic example is Requests: when it changed the API fairly significantly, umpteen installers broke... just because people did not bother with specifying a version for that lib.
- berdario 12y agoYou can also install straight from a github tarballs: pip install "https://github.com/mitsuhiko/click/tarball/master#egg=click" https://github.com/mitsuhiko/click/tarball/master#egg=click" to pin a specific revision: pip install "https://github.com/mitsuhiko/click/tarball/5b7b7296fabc5d47d4ffd179be52492095e36f30#egg=click" https://github.com/mitsuhiko/click/tarball/5b7b7296fabc5d47d... (btw, it seems bad practice to add such a link as a dependency in your setup.py... usually you'd do it for temporary shallow forks, but otherwise I think it'd be better to also upload your shallow fork on pypi ...I guess you can just remove it from pypi if it won't be needed anymore)
- chiachun 12y agoI think that's because it hasn't been released yet. The author(s) may just want some feedback or opinions first.