question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to install multiple packages

See original GitHub issue

Edit Adjusted the title because there is another proposal not related to --spec option in https://github.com/pipxproject/pipx/issues/88#issuecomment-461373956

Instead of using inject to install optional dependencies or plugins, it would be much nicer just to pass --spec multiple times, e.g. pipx install flake8 --spec "flake8" --spec "flake8-print".

This makes inject obsolete and you should deprecate it. Instead of inject you should use upgrade with specs.

So in combination with #87 this gives you a very nice way to port your pipx venvs to another PC. Just copy your pipx config file and run reinstall-all. This would also fix #63.

This would somehow give a solution for #83, too. Instead of having a venv for every cmd he could install multiple commands in one “grouped” venv.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:6
  • Comments:13

github_iconTop GitHub Comments

3reactions
schlamarcommented, Feb 7, 2019

Just one last addition (I hope): The main benefit is that you can install multiple packages at once with a single command. Doing pipx install flake8 + pipx inject flake8 flake8-print just to install two packages in a venv is not “nice”.

I thought this would be obvious but as @taketwo did not react to that advantage maybe it isn’t 😃

2reactions
schlamarcommented, Feb 7, 2019

Maybe better: allow packages separated by whitespace in spec so this would be equal to pip install and pipx inject:

pipx install flake8 --spec "flake8 flake8-print"
Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing multiple packages at the same time - Ask Ubuntu
In Linux, apt-get/yum/etc can be compared to an "Installer" in windows. One installer can install only one software at a time. You can...
Read more >
How to install multiple packages? - Stack Overflow
Here we have a list of packages we want to install load.lib<-c("EIAdata", "gdata", "ggmap","ggplot2","gridExtra","ISOweek", "Kobe","lubridate","maps","MASS" ...
Read more >
apt - How to install two applications/packages simultaneously?
The built-in Windows "Package Manager" doesn't actually allow installing two programs simultaneously. But custom installers often sidestep this.
Read more >
Install multiple packages - Puppet Cookbook
While you can install multiple packages with multiple package resources, ... The 'ensure' attribute will accept either 'present' or 'installed'.
Read more >
How to install and load multiple packages at once?
To install multiple packages with a single call to install.packages , pass the names of the packages as a character vector to the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found