error: error in 'egg_base' option: 'src' does not exist or is not a directory
I got similar problem when running setup.py by jython from outside of setup.py folder (just like your case). I don't know the root cause but when you change folder to where setup.py and scr folder is, installation completes.
cd /tmp/tmpl3kyfibgpycharm-management/pip-10.0.1python setup.py install