It it’s possible, of course.
For example – I can download python-dbus like this:
$ sudo apt-get download python-dbus
But what I should to do next, with this .deb package in my current virtualenv?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you really need to do it this way, you can just copy the files that get installed globally directly into your virtualenv. For example I couldn’t get pycurl working since the required libraries weren’t installing, but
apt-get install python-pycurldid. So I did the following:The install said it was adding it to /usr/lib/python2.7. So I looked in that directory for a site-packages or dist-packages with pycurl, after looking at the files I copied them into my virtualenv. You’d have to also copy any executables from bin into your virtualenv’s bin directory.
Also, running a
pip install -r requirements.txtsuccessfully found pycurl in there and just skipped over it as if I had installed it via pip.