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

StackOverflow https://stackoverflow.com/questions/11028318

  •  14-06-2021
  •  | 
  •  

문제

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.

도움이 되었습니까?

해결책

To create isolated python environments you can try virtualenv.

다른 팁

I find that PYTHONPATH can be set with the egg files. And now I can just put the egg files in a directory and add these egg files to PYTHONPATH.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top