Ask Your Question
0

How to Install same package with both pip and pip3 provider

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

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
1

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

joshc gravatar image

Puppet 4 supports managing the same package name with different package providers (see https://tickets.puppetlabs.com/browse...). 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
}

See https://docs.puppet.com/puppet/latest...

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

Stats

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

Seen: 157 times

Last updated: Oct 06 '16