Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing external or unverified packages with Pip on Elastic Beanstalk

Tags:

python

pip

I'm attempting to deploy a Django application to Elastic Beanstalk. When it comes to installing from requirements.txt, Python complains that some of my requirements require the --allow-external or --allow-unverified flags.

How do I set these flags in the configuration file?

like image 595
Max Woolf Avatar asked Jul 01 '14 13:07

Max Woolf


People also ask

Where should I install pip packages?

By default, packages are installed to the running Python installation's site-packages directory. site-packages is by default part of the python search path and is the target directory of manually built python packages.

Do I need to install pip?

Usually, pip is automatically installed if you are: working in a virtual environment. using Python downloaded from python.org. using Python that has not been modified by a redistributor to remove ensurepip.

Does pip install from PyPI?

Install moduleIt can install packages from the PyPi repository. It's the official repository for python modules. Software you install with pip is downloaded from the PyPi repo and installed.


1 Answers

According to the latest (1.5.6) documentation Requirements File Format:

Additionally, the following Package Index Options are supported:

-i, -–index-url
–-extra-index-url
–-no-index
-f, -–find-links
-–allow-external
-–allow-all-external
-–allow-unverified

So you can just specify –-allow-unverified, -–allow-external.

Following is the example requirements file that use --allow-unverified:

–-allow-unverified pyXML
pyXML
like image 125
falsetru Avatar answered Nov 14 '22 23:11

falsetru