jorgenschaefer/pyvenv

pyvenv-virtualenvwrapper-python is always "/home/user/.pyenv/shims/python"

Closed this issue · 2 comments

I try to use my python virtual environment with pyven and pipenv.

  • pipenv --where
    /tmp/hello

  • pipenv --venv
    /tmp/hello/.venv

  • which python
    /tmp/hello/.venv/bin/python

  • emacs M-x pyvenv-activate /tmp/hello/.venv

  • pyvenv-virtual-env
    /tmp/hello/.venv/

  • pyvenv-virtual-env-name
    hello

  • But pyvenv-virtualenvwrapper-python is still
    /home/user/.pyenv/shims/python

pyvenv-virtualenvwrapper-python is a variable defined in ‘pyvenv.el’.
Its value is "/home/user/.pyenv/shims/python"
Original value was 
"/tmp/hello/.venv/bin/python"

I think pyvenv-virtualenvwrapper-python is supposed to be
/tmp/hello/.venv/bin/python, instead of here /home/user/.pyenv/shims/python

So, I think pyvenv does not work correctly for pipenv.

Maybe I'm wrong.