Install with either:
git clone https://github.com/gdamjan/hello-world-python-package.git
cd hello-world-python-package
pip install --user .
or directly
pip install --user git+https://github.com/gdamjan/hello-world-python-package.git#egg=cool_lib
- don't try to play games with sys.path - that's surely wrong, and ends in tears
- the same is true for PYTHONPATH too
- use PEP-370 instead of virtualenv, it's a standard feature and not a hack around the
pythonexecutable. Quickest Howto about pep-370, usepip install --user, and optionally set thePYTHONUSERBASEenvironment variable to choose another directory than~/.local/.
Thanks!