[Fixed]-Install site-packages inside virtual environment python

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.

👤abcdn

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.

Leave a comment