Does pip have autocomplete?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
Pip has a long list of commands. Is there any way to use auto-complete by Tab in console (Bash)?
bash python pip auto-completion
add a comment |Â
up vote
2
down vote
favorite
Pip has a long list of commands. Is there any way to use auto-complete by Tab in console (Bash)?
bash python pip auto-completion
nice! i it work for me like charm
â Yurij
Apr 19 at 15:06
@Melebius that counts as an answer. Please answer, ping me and I'll come back to upvote!
â Fabby
Apr 19 at 15:11
yes, this comment is a right answer for me.
â Yurij
Apr 19 at 15:54
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Pip has a long list of commands. Is there any way to use auto-complete by Tab in console (Bash)?
bash python pip auto-completion
Pip has a long list of commands. Is there any way to use auto-complete by Tab in console (Bash)?
bash python pip auto-completion
edited Apr 19 at 15:45
![](https://i.stack.imgur.com/h5FrU.png?s=32&g=1)
![](https://i.stack.imgur.com/h5FrU.png?s=32&g=1)
anonymous2
3,14541746
3,14541746
asked Apr 19 at 8:46
![](https://i.stack.imgur.com/eYH1K.jpg?s=32&g=1)
![](https://i.stack.imgur.com/eYH1K.jpg?s=32&g=1)
Yurij
678
678
nice! i it work for me like charm
â Yurij
Apr 19 at 15:06
@Melebius that counts as an answer. Please answer, ping me and I'll come back to upvote!
â Fabby
Apr 19 at 15:11
yes, this comment is a right answer for me.
â Yurij
Apr 19 at 15:54
add a comment |Â
nice! i it work for me like charm
â Yurij
Apr 19 at 15:06
@Melebius that counts as an answer. Please answer, ping me and I'll come back to upvote!
â Fabby
Apr 19 at 15:11
yes, this comment is a right answer for me.
â Yurij
Apr 19 at 15:54
nice! i it work for me like charm
â Yurij
Apr 19 at 15:06
nice! i it work for me like charm
â Yurij
Apr 19 at 15:06
@Melebius that counts as an answer. Please answer, ping me and I'll come back to upvote!
â Fabby
Apr 19 at 15:11
@Melebius that counts as an answer. Please answer, ping me and I'll come back to upvote!
â Fabby
Apr 19 at 15:11
yes, this comment is a right answer for me.
â Yurij
Apr 19 at 15:54
yes, this comment is a right answer for me.
â Yurij
Apr 19 at 15:54
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
accepted
A pip
autocompletion plugin for Bash can be found at https://github.com/ekalinin/pip-bash-completion.
You can download it as a ZIP or simply install using Git:
git clone https://github.com/ekalinin/pip-bash-completion.git
sudo cp ./pip-bash-completion/pip /etc/bash_completion.d/
. /etc/bash_completion.d/pip # to enable in the current shell, next time should load automatically
add a comment |Â
up vote
3
down vote
A reasonably current pip
comes with built-in functionality to create completion helpers for bash, zsh or fish:
$ pip help completion
Usage: pip completion [options]
Description:
A helper command to be used for command completion.
Completion Options:
-b, --bash Emit completion code for bash
-z, --zsh Emit completion code for zsh
-f, --fish Emit completion code for fish
You can use it like so:
pip completion --bash >> ~/.bashrc
And then start a new shell or source ~/.bashrc
to have it take effect.
For the moment the problem is solved with help of @Melebius. I would try your solution too, thanks.
â Yurij
Apr 20 at 15:58
Funny that the completion does not install automatically together withpip
if the code is contained in itâ¦
â Melebius
Apr 21 at 7:18
@Melebius there's no good way for it to do so - packages can't touch files in the user home directories, and installing globally to/etc/bash.bashrc
is tricky to do automatically
â muru
Apr 21 at 11:08
@muru As you can see in my answer and the linked page, there is also the directory/etc/bash_completion.d/
where it could be placed more easily.
â Melebius
Apr 21 at 15:37
1
@Melebius which is from the bash-completion package, and those are two rather independent packages. This built-in completion code doesn't depend at all on bash-completion, so why would it use that directory?
â muru
Apr 21 at 15:39
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
A pip
autocompletion plugin for Bash can be found at https://github.com/ekalinin/pip-bash-completion.
You can download it as a ZIP or simply install using Git:
git clone https://github.com/ekalinin/pip-bash-completion.git
sudo cp ./pip-bash-completion/pip /etc/bash_completion.d/
. /etc/bash_completion.d/pip # to enable in the current shell, next time should load automatically
add a comment |Â
up vote
2
down vote
accepted
A pip
autocompletion plugin for Bash can be found at https://github.com/ekalinin/pip-bash-completion.
You can download it as a ZIP or simply install using Git:
git clone https://github.com/ekalinin/pip-bash-completion.git
sudo cp ./pip-bash-completion/pip /etc/bash_completion.d/
. /etc/bash_completion.d/pip # to enable in the current shell, next time should load automatically
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
A pip
autocompletion plugin for Bash can be found at https://github.com/ekalinin/pip-bash-completion.
You can download it as a ZIP or simply install using Git:
git clone https://github.com/ekalinin/pip-bash-completion.git
sudo cp ./pip-bash-completion/pip /etc/bash_completion.d/
. /etc/bash_completion.d/pip # to enable in the current shell, next time should load automatically
A pip
autocompletion plugin for Bash can be found at https://github.com/ekalinin/pip-bash-completion.
You can download it as a ZIP or simply install using Git:
git clone https://github.com/ekalinin/pip-bash-completion.git
sudo cp ./pip-bash-completion/pip /etc/bash_completion.d/
. /etc/bash_completion.d/pip # to enable in the current shell, next time should load automatically
answered Apr 20 at 5:33
Melebius
3,75841636
3,75841636
add a comment |Â
add a comment |Â
up vote
3
down vote
A reasonably current pip
comes with built-in functionality to create completion helpers for bash, zsh or fish:
$ pip help completion
Usage: pip completion [options]
Description:
A helper command to be used for command completion.
Completion Options:
-b, --bash Emit completion code for bash
-z, --zsh Emit completion code for zsh
-f, --fish Emit completion code for fish
You can use it like so:
pip completion --bash >> ~/.bashrc
And then start a new shell or source ~/.bashrc
to have it take effect.
For the moment the problem is solved with help of @Melebius. I would try your solution too, thanks.
â Yurij
Apr 20 at 15:58
Funny that the completion does not install automatically together withpip
if the code is contained in itâ¦
â Melebius
Apr 21 at 7:18
@Melebius there's no good way for it to do so - packages can't touch files in the user home directories, and installing globally to/etc/bash.bashrc
is tricky to do automatically
â muru
Apr 21 at 11:08
@muru As you can see in my answer and the linked page, there is also the directory/etc/bash_completion.d/
where it could be placed more easily.
â Melebius
Apr 21 at 15:37
1
@Melebius which is from the bash-completion package, and those are two rather independent packages. This built-in completion code doesn't depend at all on bash-completion, so why would it use that directory?
â muru
Apr 21 at 15:39
add a comment |Â
up vote
3
down vote
A reasonably current pip
comes with built-in functionality to create completion helpers for bash, zsh or fish:
$ pip help completion
Usage: pip completion [options]
Description:
A helper command to be used for command completion.
Completion Options:
-b, --bash Emit completion code for bash
-z, --zsh Emit completion code for zsh
-f, --fish Emit completion code for fish
You can use it like so:
pip completion --bash >> ~/.bashrc
And then start a new shell or source ~/.bashrc
to have it take effect.
For the moment the problem is solved with help of @Melebius. I would try your solution too, thanks.
â Yurij
Apr 20 at 15:58
Funny that the completion does not install automatically together withpip
if the code is contained in itâ¦
â Melebius
Apr 21 at 7:18
@Melebius there's no good way for it to do so - packages can't touch files in the user home directories, and installing globally to/etc/bash.bashrc
is tricky to do automatically
â muru
Apr 21 at 11:08
@muru As you can see in my answer and the linked page, there is also the directory/etc/bash_completion.d/
where it could be placed more easily.
â Melebius
Apr 21 at 15:37
1
@Melebius which is from the bash-completion package, and those are two rather independent packages. This built-in completion code doesn't depend at all on bash-completion, so why would it use that directory?
â muru
Apr 21 at 15:39
add a comment |Â
up vote
3
down vote
up vote
3
down vote
A reasonably current pip
comes with built-in functionality to create completion helpers for bash, zsh or fish:
$ pip help completion
Usage: pip completion [options]
Description:
A helper command to be used for command completion.
Completion Options:
-b, --bash Emit completion code for bash
-z, --zsh Emit completion code for zsh
-f, --fish Emit completion code for fish
You can use it like so:
pip completion --bash >> ~/.bashrc
And then start a new shell or source ~/.bashrc
to have it take effect.
A reasonably current pip
comes with built-in functionality to create completion helpers for bash, zsh or fish:
$ pip help completion
Usage: pip completion [options]
Description:
A helper command to be used for command completion.
Completion Options:
-b, --bash Emit completion code for bash
-z, --zsh Emit completion code for zsh
-f, --fish Emit completion code for fish
You can use it like so:
pip completion --bash >> ~/.bashrc
And then start a new shell or source ~/.bashrc
to have it take effect.
answered Apr 20 at 5:40
muru
129k19272462
129k19272462
For the moment the problem is solved with help of @Melebius. I would try your solution too, thanks.
â Yurij
Apr 20 at 15:58
Funny that the completion does not install automatically together withpip
if the code is contained in itâ¦
â Melebius
Apr 21 at 7:18
@Melebius there's no good way for it to do so - packages can't touch files in the user home directories, and installing globally to/etc/bash.bashrc
is tricky to do automatically
â muru
Apr 21 at 11:08
@muru As you can see in my answer and the linked page, there is also the directory/etc/bash_completion.d/
where it could be placed more easily.
â Melebius
Apr 21 at 15:37
1
@Melebius which is from the bash-completion package, and those are two rather independent packages. This built-in completion code doesn't depend at all on bash-completion, so why would it use that directory?
â muru
Apr 21 at 15:39
add a comment |Â
For the moment the problem is solved with help of @Melebius. I would try your solution too, thanks.
â Yurij
Apr 20 at 15:58
Funny that the completion does not install automatically together withpip
if the code is contained in itâ¦
â Melebius
Apr 21 at 7:18
@Melebius there's no good way for it to do so - packages can't touch files in the user home directories, and installing globally to/etc/bash.bashrc
is tricky to do automatically
â muru
Apr 21 at 11:08
@muru As you can see in my answer and the linked page, there is also the directory/etc/bash_completion.d/
where it could be placed more easily.
â Melebius
Apr 21 at 15:37
1
@Melebius which is from the bash-completion package, and those are two rather independent packages. This built-in completion code doesn't depend at all on bash-completion, so why would it use that directory?
â muru
Apr 21 at 15:39
For the moment the problem is solved with help of @Melebius. I would try your solution too, thanks.
â Yurij
Apr 20 at 15:58
For the moment the problem is solved with help of @Melebius. I would try your solution too, thanks.
â Yurij
Apr 20 at 15:58
Funny that the completion does not install automatically together with
pip
if the code is contained in itâ¦â Melebius
Apr 21 at 7:18
Funny that the completion does not install automatically together with
pip
if the code is contained in itâ¦â Melebius
Apr 21 at 7:18
@Melebius there's no good way for it to do so - packages can't touch files in the user home directories, and installing globally to
/etc/bash.bashrc
is tricky to do automaticallyâ muru
Apr 21 at 11:08
@Melebius there's no good way for it to do so - packages can't touch files in the user home directories, and installing globally to
/etc/bash.bashrc
is tricky to do automaticallyâ muru
Apr 21 at 11:08
@muru As you can see in my answer and the linked page, there is also the directory
/etc/bash_completion.d/
where it could be placed more easily.â Melebius
Apr 21 at 15:37
@muru As you can see in my answer and the linked page, there is also the directory
/etc/bash_completion.d/
where it could be placed more easily.â Melebius
Apr 21 at 15:37
1
1
@Melebius which is from the bash-completion package, and those are two rather independent packages. This built-in completion code doesn't depend at all on bash-completion, so why would it use that directory?
â muru
Apr 21 at 15:39
@Melebius which is from the bash-completion package, and those are two rather independent packages. This built-in completion code doesn't depend at all on bash-completion, so why would it use that directory?
â muru
Apr 21 at 15:39
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026332%2fdoes-pip-have-autocomplete%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
nice! i it work for me like charm
â Yurij
Apr 19 at 15:06
@Melebius that counts as an answer. Please answer, ping me and I'll come back to upvote!
â Fabby
Apr 19 at 15:11
yes, this comment is a right answer for me.
â Yurij
Apr 19 at 15:54