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

Python changing arrays (numpy) using the map command
Iterate function changing parameter after each run
How to access name of a specific vertex in graph (python-igraph)
gdal_merge overlaying pngs over one another
How would I use a attribute or a element that will split my data from adding with each other
Scraping HTML forms with regex
How to reduce time complexity of a program for finding length of a factorial in python?
Python socket programming-saving data from socket
Python3 find last occurrence string then write
python method works outside of Class, but not within Class
How do I optimize this python code using cython?
Python - regex lookup for multiple lines of HTML
Python: how to omit lines in a .txt file
Creating COM object via ssh (issue with AutoCAD.Application)
Python: Nested While Loops & Continue Looping
Why is the group method allowed on re.match even though it can sometimes return None?

Categories

HOME
swift
cakephp-3.x
ember.js
elixir
openssl
tinyos
reverse-engineering
textwatcher
appmaker
histogrammar
apiconnect
triggers
vuex
jboss-eap-7
phoenix
bar-chart
alfresco-share
cairo
session-timeout
off-canvas-menu
pyephem
ios10.3
excel-2010
binutils
tflearn
searchbar
opencart2.3
osmdroid
bus-error
winscp
google-api-dotnet-client
aurelia-binding
roundcube
rowcount
data-extraction
ocs
transient
modulo
mapguide
reactivemongo
jboss-esb
ksoap
pmwiki
xamarin.uitest
discord.net
visualstudio.testtools
web-development-server
lftp
filepath
spell-checking
bnd
greenhills
mcrypt
gce
search-box
push-diffusion
manifest.mf
vst
bacnet
amf
soda
dac
post-processing
loose-typing
file-diffs
document-oriented-db
mirrorlink
app.xaml
matcaffe
visual-studio-code
vine
leadtools-sdk
gray-code
pylearn
subversion-edge
virus
ctrlp
hana-xs
left-recursion
microblaze
google-admin-audit-api
suffix-array
coin-flipping
late-static-binding
unison
uipickerviewcontroller
circos
convex-polygon
onselect
vertical-rhythm
resgen
magickwand
pys60
code-conversion
ninject-extensions
wchar
zookeeper
django-nose
rijndael
post-redirect-get
svn-hooks
unreachable-code
openvg
multibyte-functions
asp.net-mvc-controller
divx

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