Can virtual ones be avoided while using Emacs Jedi (in Anaconda)?

I am using Anaconda python framework. Anaconda has its own virtual environment system, and I don’t understand if virtualenv can be safely used with Anaconda.

Emacs Jedi seems to require virtualenv. Is it used at run time or is it used only during installation? Can i use jedi without installing virtualenv? Can virtualenv be un-installed after the Jedi installation is complete?

Is there a way to ask this question directly to the Jedi developers? (could not find a way)

+4
source share
3 answers

?

github, .

emacs-jedi website , virtualenv , , jedi . , jedi (, el-get - ), .

UPDATE

jedi virtualenv

1) jedi melpa. M-x list-packages, jedi, I, X, ( , elisp)

2) python, .txt , pip install -r requirements.txt, python.

3) - jedi python,

(autoload 'jedi:setup "jedi" nil t)
(add-hook 'python-mode-hook 'jedi:setup)

jedi, ,

2

, emacs-jedi " conda" ( miniconda, )

1) conda ( emacs-jedi),

conda create -n emacs-jedi python

2) , epc sexpdata ( emacs-jedi)

a) conda-recipes

b) , conda build /path/to/conda-recipies/<pkgname>

3) , , source activate emacs-jedi ,

conda install --use-local jedi sexpdata epc

--use-local

4) , emacs jedi,

(eval-after-load "jedi"
    '(setq jedi:server-command (list "/path/to/emacs-jedi/bin/python" jedi:server-script)))
+3

Jedi.el dev . Jedi.el v0.2.0, virtualenv . - , , Jedi.el Python. :

, , , . virtualenv, --virtual-env. , --sys-path, Jedi.el . :

-, anaconda-specific site-path. Run

python -c 'import sys; print(sys.path)'

anaconda , anaconda ( , . , "anaconda" ). , --sys-path. . jedi:server-args .

+2

, jedi:server-command:

(setq jedi:server-command
        `("python"
          ,(concat (file-name-directory
                   (buffer-file-name
                    (car
                     (find-definition-noselect 'jedi:setup nil))))
                  "jediepcserver.py")))
0

Source: https://habr.com/ru/post/1526358/


All Articles