[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: elpy on Windows: No module named 'encodings'
From: |
Jean Louis |
Subject: |
Re: elpy on Windows: No module named 'encodings' |
Date: |
Thu, 5 Nov 2020 16:40:32 +0300 |
User-agent: |
Mutt/+ (1036f0e) (2020-10-18) |
* c.buhtz@posteo.jp <c.buhtz@posteo.jp> [2020-11-05 13:56]:
> Hello, I try to get elpy run on Windows.
> On Debian 10 I run such an elpy environment. So I know what to expect.
>
> When editing a py-file I got the elpy-output-error
> "Fatal Python error: initfsencoding: unable to load the file system codec
> ModuleNotFoundError: No module named 'encodings'"
>
> Ok, I checked (elpy-config)
>
> Emacs.............: 27.1
> Elpy..............: Not found (Python), 1.34.0 (Emacs Lisp)
> Virtualenv........: None
> Interactive Python: python .
> (c:/Users/Buhtzy/AppData/Local/Microsoft/WindowsApps/python.exe)
> RPC virtualenv....: rpc-venv
> (c:/Users/Buhtzy/AppData/Roaming/.emacs.d/elpy/rpc-venv)
> Python...........: c:/WINDOWS/py.exe nil (c:/WINDOWS/py.exe)
> Jedi.............: Not found
> Rope.............: Not found
> Autopep8.........: Not found
> Yapf.............: Not found
> Black............: Not found
> Syntax checker....: flake8.exe (c:/Program Files
> (x86)/Python37-32/Scripts/flake8.exe)
I guess you need all those Python packages for elpy to work and how
you load them on Windows I do not know. Normally those packages are in
OS distributions' packages. But they can be also installed with:
$ pip install NAME