python


pip install requirements.txt issue when deploying Django app on Heroku


I am trying to deploy my django app on Heroku using the following guidance: https://devcenter.heroku.com/articles/deploying-python. I reached the point where I have to create and populate the "requirements.txt" file with the following command:
$ pip install -r requirements.txt
However, I get the following error message
You must give at least one requirement to install (see "pip help install")
I tried two other commands
$ pip install -r requirements.txt requirements.txt
$ pip install --allow-all-external requirements.txt
but in both cases I get the following error
Collecting requirements.txt
/home/bastien/python/framework/scrapping/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/bastien/python/framework/scrapping/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Could you please tell me where the issue is coming from, how I can resolve it using the appropriate command lines or if there is a way to populate the requirements.txt file in any other way? Thanks.

pip install -r requirements.txt does not populate requirements.txt - it reads it as the source of names of packages to install. See https://pip.pypa.io/en/stable/user_guide/#requirements-files for further details.
To capture your current installed package list to a requirements.txt, try pip freeze > requirements.txt.


Related Links

How to import csv file data into namedtuple? [duplicate]
Flickr API returns duplicate photos
Setting different code styles for separate projects in Pycharm
Generate fractals with python
Optimize nested for-loops in terms of execution time
UVA runtime error with Python
Exception during running the graph: Unable to get element from the feed as bytes
Using google.protobuf.Any in python file
Plotting a 3D image in python
How do I remove first and last item from linked list?
Managing hourly data into monthly data with Pandas
Restricting Access to Data Based on User Profile using Django Filter
Broken plotly installation impacts Django
Pygame bullet motion from point A to point B
app.yaml file - Unable to assign value 'python27 api_version' to attribute 'runtime':
Exception ignored in message on program exit

Categories

HOME
sharepoint
converter
admin-on-rest
google-tag-manager
angular2-routing
angular2-directives
apollo
apache2
i2c
flann
public-key-encryption
ida
zope
phpbb
derived
tweets
google-maps-android-api-2
kitematic
spring-ws
tarantool
binutils
fabric
compare-and-swap
data-cleansing
geopandas
bus-error
metadata-extractor
spring-data-neo4j
solidworks
smart-mobile-studio
passenger
duktape
deepstream.io
linq-to-entities
floating-accuracy
tango
ajp
production-environment
gd
azureportal
spring-data-hadoop
date-range
project-template
gradle-script-kotlin
iostat
icefaces
mailcatcher
wcf-ria-services
webkit2
mercurial-hook
coordinate-transformation
dac
programming-paradigms
ffserver
harp
isml
mdm-zinc
chaining
utf-32
libsndfile
mser
dmp
firebug-lite
dache
boost-test
neoload
mfmailcomposeviewcontroll
android-looper
visualstatemanager
visual-c++-2010-express
.net-cf-3.5
stagefright
grunt-contrib-compass
soa-suite
reporting-tools
zend-framework-modules
crocodoc
fotoware
shim
gjs
point-sprites
maven-ant-tasks
printing-web-page
collect
dashcode
pantheios
communicationexception
graniteds
pci-bus
multibyte-functions
nt4
self-reference





Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm