The basic way to install a package from binstar is using pip:
pip install --index-url pypi.binstar.org/REGISTRY-PATH/simple PACKAGE
Where REGISTRY-PATH may be one of the following:
A username, this allows installation of packages from a user registry:
pip install --index-url pypi.binstar.org/USER/simple PACKAGE
A user channel, this allows installation of packages from a collection of packages a user has put together:
pip install --index-url pypi.binstar.org/USER/channel/channel-NAME/simple PACKAGE
The main channel is the default channel:
pypi.binstar.org/USER/channel/main/simple
is equivalent to pypi.binstar.org/USER/simple
All urls (except for the public registry) can be prefixed with /t/$TOKEN
to access private packages.
TOKEN=$(binstar auth --create --name YOUR-TOKEN-NAME)
pip install --index-url pypi.binstar.org/t/$TOKEN/USER/simple PACKAGE
pip allows you to set all command line option defaults in a standard ini style config file.
The names and locations of the configuration files vary slightly across platforms.
$HOME/.pip/pip.conf
%HOME%\pip\pip.ini
Appending options like --extra-index-url
or --index-url
can be written as:
[global]
extra-index-url =
http://pypi.binstar.org/user/simple
[install]
extra-index-url =
http://pypi.binstar.org/user2/simple
See also the official pip installer documentation
All packages you author must go to a user account. To create a package go to binstar.org/new
See also authoring packages for a general overview.
或是邮件反馈可也:
askdama[AT]googlegroups.com
订阅 substack 体验古早写作:
关注公众号, 持续获得相关各种嗯哼: