1👍
✅
You may try:
$ pip freeze
where pip is the system-wide pip
. If it outputs anything, then just do:
$ pip freeze > requirements.txt;
$ source /path/to/venv/bin/activate && pip install -r requirements.txt;
In this way you will tell the virtual environment’s pip to install all the python packages that are installed system-wide.
If pip freeze
doesn’t work, this is a privilleges issue, you have to elaborate this as/with an admin.
UPD: You may need to install additional packages as python3-dev, build-essential etc for pip install -r requirements.txt
to work.
0👍
This might be happening because of the existence of another user in your machine.Just check if you have the system privileges , if not edit the properties of the file and grant it permission.
- Uploading a file using django
- Python (django) regex limit result not working
- Django – add a form into a fieldset in django admin?
- Django python How to insert a json containing several objects in postgresql
Source:stackexchange.com