pyvenv
pyvenv copied to clipboard
Explain basic usage in README
As a newbie to virtual environment usage in Emacs I would appreciate it if the README.md file showed some basic usage of this script. Without such documentation I don't even know where to start to use this myself.
Thank you for the suggestion. A link to http://docs.python-guide.org/en/latest/dev/virtualenvs/ would indeed be useful there! :-)
It would also be useful to see how it is meant to be "installed" in Emacs.
Hm. Yeah. Maybe a bit more verbose in the README – it really is as simple as M-x pyvenv-workon RET yourenv RET, though :-)
Not quite that simple. Apparently, there's an error (at least, in my case).
When doing: M-x pyvenv-workon RET yourenv RET
There is this message: Can’t find a workon home directory, set $WORKON_HOME
Is $WORKON_HOME an environmental variable to be set with a list of directories? I can set it manually, but it appears the command isn't reading anything from WORKON_HOME. I'm using emacs25 with pyvenv version 1.13
The code I used to set it manually was : (setenv "WORKON_HOME" "~/myvenv")
Or is there more to it than that?
workon is a name from virtualenvwrapper. Elpy does not intend to install a full Python environment on your system, it uses your Python environment. (E.g. Elpy does not come with a Python installation, nor with pip, nor with virtualenv, nor with virtualenwrapper :-D) If you do not use virtualenvwrapper, you can use M-x pyvenv-activate.
Cool. This was helpful. But I agree... It would help if this was somewhere in the bottom of README.md