mcan
mcan

Reputation: 2082

Using Apt-Get Python Packages Inside Virtual Environment

I have installed pandas with apt-get package manager via code

sudo apt-get install python3-pandas

Because pip install pandas hungs long time.

I need to use pandas inside a virtual environment. How can i use a apt-get installed Python package inside virtual environment?

Upvotes: 0

Views: 1255

Answers (1)

mcan
mcan

Reputation: 2082

I have simply copied the original pandas directory to the virtual environment directory.

cp -R /usr/lib/python3/dist-packages/pandas /home/pi/.virtualenvs/insta/lib/python3.5/site-packages

Upvotes: 1

Related Questions