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

String formatting of timedeltas in Pandas
Celery - How to send task from remote machine?
YouTube Api v3 handling Exceptions in Python
Copy data from one oracle database to another with Python
converting python program into executable
How to use multidatabase across multiproject in django?
SSLHandshakeError when connecting to Google Analytics using Google APIs Client Library for Python
Pandas Pivot Table Display in ReportLab
python multiprocessing behaviour
How do You Hack the Enthought Canopy Editor Background Color?
Why does PySide still require QString for textChanged SIGNAL?
Calling to a Sikuli script from Python (Selenium)
Add optional part in python regular expression
Django QueryDict empty with request.POST but populated in request.GET
Building menu of files in folder hierarchy
Incorrect Content-Length for a file (Request Entity Too Large 413)

Categories

HOME
google-apps-script
jar
nlp
jsviews
voip
warnings
bing
antivirus
angular2-routing
reportportal
otrs
metronic
android-source
wysiwyg
gatsby
cpanel
future
sql-tuning
jquery-terminal
mule-studio
pyyaml
quartus
saiku
clover
android-fragmentactivity
distance
tweets
koa
sql-update
azure-servicebus-queues
tflearn
csh
samsung-mobile
guile
interrupt-handling
classpath
owl-api
consumer
getline
modelandview
qtablewidget
jquery-cycle2
shibboleth
openshift-enterprise
bing-maps-api
ksoap
coreclr
dql
fax
jupyter-console
nashorn
xbim
mod-fcgid
matlab-cvst
openweathermap
openh264
selenium-firefoxdriver
ingres
iron.io
cjson
picasa
database-backups
mongoskin
kendo-combobox
scriptlet
direct3d12
jta
data-import
jenkins-scriptler
unity5.3
sem
pyrocms
ipojo
type-mismatch
rspec3
pgm
google-hadoop
multipleselection
libsndfile
scala-2.11
hidden-field
sthttprequest
author
pic24
openkinect
lov
operations
pyjade
bfd
sslexception
onselect
vertical-rhythm
shiva3d
xml-libxml
snapjs
zend-framework-modules
cgpath
feof
sunspot-rails
getusermedia
separation-of-concerns
tcxgrid
cookieless
ruby-debug
recordset
revert
interface-design

Resources

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
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App