I am having trouble with pycharm and virtualenv's.
Packages installed in a virtualenv with "pip -e" (editable repos, basically) are being ignored. The -e flag puts them in /<virtualenv name>/src/ instead of /<virtualenv>/lib/python2.7/site-packages/.
Scripts run from the command line with an active virtualenv work fine. In pycharm, after setting up the venv in my project settings, it finds every script except the packages installed with the -e flag. Running the script in pycharm also fails at the first import using a package installed with the -e flag.
The -e is what we use to bring in other module, but keeping their .git directory intact, inside our projects.
- Create a venv: "virtualenv venv --no-site-packages"
- Create a requirements.txt file with a line like this: "-e git+ssh://email@example.com:7999/my/package.git#egg=package"
- Activate the venv "source venv/bin/activate"
- Install the requirements.txt WITH the virtualenv active: "pip install --upgrade -r requirements.txt --ignore-installed"
- Add the virtualenv location to pycharm, https://www.jetbrains.com/help/pycharm/2016.1/creating-virtual-environment.html?origin=old_help
- See the -e package be ignored by pycharm.
Also tested in intellij. Same behavior.