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?
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With