Install custom python package in virtualenv

I want to deploy a python flask application using Amazons Elastic Beanstalk. Therefore, I want to use virtualenv to make sure you get the right packages.

However, one package (docx) is not available through pip, and I would like to install it manually. If I install it manually through python setup.py install , then the installation is done, but the package twists the lxml dependencies.

  • Do I need a virtual machine in the first place, or can I just go into the amazon console and manually install all the packages?

  • I run Mac at home and Linux on an Amazon S3 server, so can I create a package on my Mac (I think some kind of c-code compiled) still works?

  • If you really recommend using virtualenv, any idea on how to solve the problem with the screwed library above? (if I am not outside of virtualenv and using conda install lxml , I am good. But inside virtualenv conda install lxml will not conda install lxml for some reason, import lxml gives an error that the library was not found.

I would be grateful for your contribution.

+1
source share

All Articles