Search code examples
pythondeploymentegg

How to deploy a python project to an environment that has not install some third-party libraries?


I have a project that using some third-party libraries. My questions is how to deploy my project to an environment that has not install these third-party libraries. In Java, I can just put all jars in the "lib" directory and write a bootstrap shell script that setting the CLASSPATH to contain the jars. I want a clean solution like this so that makes little influence on the environment.


Solution

  • To create isolated python environments you can try virtualenv.