jorgenschaefer / elpy

Emacs Python Development Environment
GNU General Public License v3.0
1.9k stars 261 forks source link

pyenv commands are not available in a fresh elpy install #1809

Closed gbordyugov closed 4 years ago

gbordyugov commented 4 years ago

Summary

pyenv-* commands are not available in a fresh elpy install

Steps to reproduce

My configuration

OS

Mac OS X Catalina 10.5.5, emacs installed by brew.

Result of (elpy-config)

Elpy Configuration

Emacs.............: 26.3
Elpy..............: 1.34.0
Virtualenv........: None
Interactive Python: python 3.7.7 (/Users/gri/src/foreign/pyenv/shims/python)
RPC virtualenv....: rpc-venv (/Users/gri/.emacs.d/elpy/rpc-venv)
 Python...........: python3 3.7.3 (/Users/gri/.emacs.d/elpy/rpc-venv/bin/python3)
 Jedi.............: 0.17.0
 Rope.............: 0.17.0
 Autopep8.........: 1.5.3
 Yapf.............: 0.30.0
 Black............: 19.10b0
Syntax checker....: Not found (flake8)

Warnings

You have not activated a virtual env. While Elpy supports this, it is
often a good idea to work inside a virtual env. You can use M-x
pyvenv-activate or M-x pyvenv-workon to activate a virtual env.

The directory ~/.local/bin/ is not in your PATH. As there is no active
virtualenv, installing Python packages locally will place executables
in that directory, so Emacs won't find them. If you are missing some
commands, do add this directory to your PATH -- and then do
`elpy-rpc-restart'.

The configured syntax checker could not be found. Elpy uses this
program to provide syntax checks of your programs, so you might want
to install one. Elpy by default uses flake8.

[Install flake8]

Options

Square brackets indicate buttons; type RET or click mouse-1 on a
button to invoke its action. Invoke [+] to expand a group, and [-] to
collapse an expanded group. Invoke the [Group], [Face], and [Option]
buttons below to edit that item in another window.

[+]-- [Group] Elpy
[+]-- [Group] Python
[+]-- [Group] Virtual Environments (Pyvenv)
[+]-- [Group] Completion (Company)
[+]-- [Group] Call Signatures (ElDoc)
[+]-- [Group] Inline Errors (Flymake)
[+]-- [Group] Code folding (hideshow)
[+]-- [Group] Snippets (YASnippet)
[+]-- [Group] Directory Grep (rgrep)
[+]-- [Group] Search as You Type (ido)
[+]-- [Group] Django extension
[+]-- [Group] Autodoc extension

Elpy configuration in my init.el

(elpy-enable)

elpy installed from melpa stable.

gbordyugov commented 4 years ago

Mea culpa, it reads pyvenv-*.