-1

I want to test a package of python in my virtualenv. This package is not available in PyPI. Then I have to install with apt or apt-get. Is any way to install a package just on virtualenv?

This question is not repetitive. In this question, I mentioned without pip and just using apt, apt-get (package manager system) for installing a package on virtualenv. My machine is Ubuntu 20.04

surena
  • 1
  • 1
  • 1
    Does this answer your question? [Installing Python packages from local file system folder to virtualenv with pip](https://stackoverflow.com/questions/15031694/installing-python-packages-from-local-file-system-folder-to-virtualenv-with-pip) – Harun Yilmaz May 23 '22 at 18:07
  • No. I mentioned without pip. – surena May 23 '22 at 18:19
  • 1
    Could you clarify what type of package you're referring to? If the package is something you install using apt, then that's a [Debian package](https://en.wikipedia.org/wiki/Deb_(file_format)), which is unrelated to and incompatible with virtualenvs. – Brian May 23 '22 at 18:49
  • What kind of file are you trying to install? What is the file format? Is it a `*.deb` file? -- As far as I know, `apt-get` is not able to install anything in a Python virtual environment. -- Many clarifications are needed in your question to be able to give a meaningful answer. – sinoroc May 23 '22 at 18:54
  • assume a file with format .tar.gz or .whl which downloaded with a package manager and now I want to install in my virtualenv. The package that I'm working on is a file with .whl format that I got from my friend. – surena May 23 '22 at 20:40
  • Without _pip_ it is a bit difficult to install, but not impossible. A `.whl` wheel file is actually a ZIP archive. Installing is mostly just a matter of unzipping this archive and placing the files in the right directories. -- But for sure you can not use apt-get/apt to install a wheel. – sinoroc Jun 01 '22 at 18:50

0 Answers0