1

Is there a way to use a library that I built from source in virtualenv? All user documentation is about pip install normally. One option is to use --system-site-packages since library is built from source globally. But I don't want that.

Spring
  • 11,333
  • 29
  • 116
  • 185
  • can't you build the library again in the virtual environment? – iBug Feb 03 '19 at 11:13
  • 1
    You should look at `pip install --editable .`. It will install the current directory in the virtualenv (it should be activated so that `pip` is the virtualenv one). Check also [this question](https://stackoverflow.com/questions/30306099/pip-install-editable-vs-python-setup-py-develop) – Bakuriu Feb 03 '19 at 11:18
  • @Bakuriu tnx solved my problem. If you answer it I accept pip install -e /path/to/package --no-binary :all: – Spring Feb 03 '19 at 19:12

1 Answers1

0

I solved the problem by

 pip install -e /path/to/package --no-binary :all:

This post helped

Spring
  • 11,333
  • 29
  • 116
  • 185