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

Problems with django and virtualenv
Returning when any Future in a list finishes
Python Django - matching query does not exist when using pk
R translation to Python
Are there downsides to using Python locals() for string formatting? [duplicate]
Compiled Python writing to Program Files
How to synchronize multiple django settings to the DB?
simulate pulling marbles from a bag without replacement (efficiently)
Datetime string doesn't match after strftime() and strptime()
Pandas HDFStore Tables doesn't accept multiindex columns
Two lists, if a common match is found print another list element [closed]
Is it possible to permanently change a variable inside a Python script from the same script?
Tweepy: simple script with 'Bad Authentication data' error
def function python - Help me with syntax
After the installion of django-bootstrap-toolkit, to use the css class in bootstrap, but it didn't work
Simple instructions for installing python easy_install on OSX

Categories

HOME
cakephp-3.x
ember.js
shopify
ubuntu-16.04
translation
google-sheets-api
docker-swarm
phonegap-cli
spring-cloud-contract
structuremap
window
outlook-web-addins
iso
uiscrollview
image-recognition
ctypes
mod-pagespeed
scaling
python-unicode
arm-template
tree-traversal
scalaz7
jquery-form-validator
memsql
jflex
badge
cep
pcre
autofill
pitest
cell-array
expand
pyscripter
spreedly
geopy
qtablewidget
pox
nlb
readfile
sonarqube-scan
sql-like
declare
topic-modeling
polyfills
socketscan
web-development-server
viewgroup
excel-interop
crop
jdbi
rich-text-editor
lumen-5.3
floor
ti-basic
spell-checking
pycurl
date-range
objloader
atlassian-crowd
debugdiag
slam-algorithm
cron-task
git-annex
gameanalytics
freetype2
windows-nt
gherkin
kendo-combobox
gradle-release-plugin
supportmapfragment
anti-cheat
fortran90
web-essentials
except
difference
windows-vista
evo
connection-reset
ffserver
pyopengl
robocode
consensus
sqoop2
client-side-validation
viewflipper
odftoolkit
errorprovider
grunt-contrib-concat
jstat
io.js
funkload
factors
help-viewer
edit-in-place
bigint
nscolor
google-closure-library
fraud-prevention
fortran77
awesomeprint
ubuntu-11.10
css-tables
autostart
isolatedstorage
wchar
path-manipulation
nemerle
charts4j
msbuildextensionpack
gethashcode
clause
sitemappath
linfu
data-entry
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