19👍
You must be doing something wrong. Something like: pip install path/to/requirements.txt
, but the requirements file must be passed with -r
argument:
pip install -r path/to/requirements.txt
Hugs.
15👍
I’d like to complete the answer if anyone runs in the same variant as I did: I was running everything on a Windows environment (windows 7). Under powershell, I had ran
pip freeze > requirements.txt
When I tested on a new virtualenv, I had the same error as above. The problem was an encoding issue (ugh): make sure the requirements.txt file is written in UTF-8 (without BOM). Notepad++ or sublime text can make sure of that.
Hope it helps anyone else for the which the answer above was not enough.
- Django raw_id_fields widget not showing search icon
- Django: how to trigger creation of ContentTypes for new models?
- Django time difference with F object
2👍
My issue ending up being that in some terminals, – and – look exactly the same. I had –r and it threw this error. You want -r.
- Django – How to deal with the paths in settings.py on collaborative projects
- Ignoring case with __startswith
- Adding reports to Django's admin
- Using Django Login Required Mixin
0👍
if you are pushing to Azure, even with utf-8 you might also run into this problem:
ValueError: (‘Missing distribution spec’, ‘\xef\xbb\xbfDjango==1.11.4’)
the safe way is to save as requirements.txt as ansi file.
well, given you are running on windows