Search code examples
pythonjupyter-notebookvirtualenvubuntu-16.04ubuntu-server

How can I use a system installed python package within a virtual environment?


I am using jupyter notebook on an Ubuntu server. To connect from my local machine, I am using an ssh tunnel.

jupyter is installed in a virtual environment.

This server has a tensorflow installation that was compiled and installed from source using bazel in order to be compatible with specific hardware of the server. I want to be able to use that installation of tensorflow from my virtual environment.

How do I go about doing this?


Solution

  • I found the answer here.

    Simply had to delete the no-global-site-packages.txt file. Unbelievably easy!