python - Installing multiple versions of a package with pip -
in application use:
packagea, requirespackagex==1.3packageb, requirespackagex==1.4packagex==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
Post a Comment