10👍
Just met the same issue in our box too. fixed it by deleting this directory
rm -rf ~/.cache/pip
path may differ by OS, check this link to find your pip cache directory https://pip.pypa.io/en/latest/reference/pip_install.html#caching
The reason is we have a corrupted cache of django in the box somehow, I found this by adding -v parameter when you install django to see the verbose output:
pip install -v django==1.5
in our case, it’s just installed without downloading anything. then i added –no-cache-dir to install a clean one:
pip install -v django==1.5 --no-cache-dir
it works this time, there is no conf and contrib folder in the root of virtualenv, instead the files stay in site-packages which is we expected. and after we remove ~/.cache/pip, it also works fine with pip install django==1.5
- Django Rest Framework bulk updates inserting instead of updating
- Confused by Django's claim to MVC, what is it exactly?
- Render ChoiceField options in Django template
- How to format django template in Sublime Text
Source:stackexchange.com