python - Installing multiple versions of a package with pip -


in application use:

  • packagea, requires packagex==1.3
  • packageb, requires packagex==1.4
  • packagex==1.5

how can install multiple versions of packagex pip handle situation?

pip won't this.

you can tell install specific version, override other one. on other hand, using 2 virtualenvs let install both versions on same machine, not use them @ same time.

you best bet install both version manually, putting them in python path different name.

but if 2 libs expect them have same name (and should), have modify them pick version need import alias such as:

import dependencyname_version dependencyname 

there no clean way this. best can hope hack work.

i'd rather ditch 1 of 2 libs , replace equivalent, or patch accept new version of dependency , give patch community.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -