Ask Your Question

How to Install same package with both pip and pip3 provider

asked 2016-09-20 18:41:11 -0600

Fang gravatar image

Hi everyone,

I have both Python 2x & 3x scripts running on my server. I have several packages where I need to install both the versions of a package. How can I install the same package name with both pip and pip3? I'm getting errors where the package name is already defined (even though they're in separate classes). I've tried aliasing and that hasn't worked either.

Thanks for any help....

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-10-06 12:56:59 -0600

joshc gravatar image

Puppet 4 supports managing the same package name with different package providers (see So you should be able to do something like:

package { 'guid':
  ensure => '1.2.3':
  package => pip
package { 'guid':
  ensure => '4.5.6':
  package => pip3


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-09-20 18:41:11 -0600

Seen: 809 times

Last updated: Oct 06 '16