You can also try to establish a symbolic link to one of your virtual servers.
eg. 1) activate your virtualenv 2) run python 3) import sys and check sys.path 4) you will find the python search path there. Select one of them (for example, site packages) 5) go there and create a symbolic link to your package, for example: ln -s path-to-your-package name-with-which-you-you-be-importing
This way you can import it without even activating your virtualenv. Just try: path-to-your-virtualenv-folder / bin / python and import your package.
Slavko-t May 09 '16 at 12:49 2016-05-09 12:49
source share