1👍
✅
Because the normal user doesn’t have permission to install packages globally. Either run with sudo
, or – much better – use a virtualenv and install your packages in there.
0👍
There’re several questions regarding this problem, I’d suggest to take a look at these:
- Using
virtualenv
https://stackoverflow.com/a/19472082/394647 - Using
$HOME
https://stackoverflow.com/a/7143496/394647
I prefer the second one but it also depends on your project/app structure
- Django – Access to ForeignKey in template, but with a filter
- Django get custom m2m field value
- Django rest_social_auth log in. What to do with facebook token?
Source:stackexchange.com