pyvenv icon indicating copy to clipboard operation
pyvenv copied to clipboard

Explain basic usage in README

Open plouj opened this issue 9 years ago • 6 comments

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.

plouj avatar Jun 28 '16 19:06 plouj

Thank you for the suggestion. A link to http://docs.python-guide.org/en/latest/dev/virtualenvs/ would indeed be useful there! :-)

jorgenschaefer avatar Jul 02 '16 10:07 jorgenschaefer

It would also be useful to see how it is meant to be "installed" in Emacs.

plouj avatar Jul 02 '16 13:07 plouj

Hm. Yeah. Maybe a bit more verbose in the README – it really is as simple as M-x pyvenv-workon RET yourenv RET, though :-)

jorgenschaefer avatar Jul 02 '16 13:07 jorgenschaefer

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?

starkdg avatar Apr 29 '18 22:04 starkdg

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.

jorgenschaefer avatar May 04 '18 11:05 jorgenschaefer

Cool. This was helpful. But I agree... It would help if this was somewhere in the bottom of README.md

lljr avatar Jan 07 '19 16:01 lljr