I am trying to install JEDI autocompletion for Emacs according to this manual.
When I enter M-x jedi:install-server, I get the error Program named "virtualenv" does not exist. I followed the advice in this answer and installed it using pip install virtualenv. Now when I enter virtualenv in the terminal, I get this output:
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--clear-app-data] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-posix,venv}] [--seeder {app-data,pip}] [--no-seed]
[--activators comma_sep_list] [--clear] [--system-site-packages] [--symlinks | --copies] [--download | --no-download] [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip]
[--no-setuptools] [--no-wheel] [--symlink-app-data] [--prompt prompt] [-h]
dest
virtualenv: error: the following arguments are required: dest
Then I restarted, entered M-x jedi:install-server, but I still get the same error.
I am using GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-12-03 on Linux Mint 19.3 Tricia.
How can I fix this the error and start using JEDI autocompletion?
Update 1: Also, whenever I open a Python file, I get this warning
*** EPC Server Config ***
Server arguments: ("/usr/bin/python" "/home/XXXXXXX/.emacs.d/elpa/jedi-core-20191011.1750/jediepcserver.py")
Actual command: /usr/bin/python
VIRTUAL_ENV envvar: nil
*** jedi-mode is disabled in #<buffer createPageStructure.py> ***
Fix the problem and re-enable it.
*** You may need to run "M-x jedi:install-server". ***
This could solve the problem especially if you haven't run the command yet
since Jedi.el installation or update and if the server complains about
Python module imports.