Emacs'i seviyorum ve bir python kabuğunu tramp ile çalıştırmak istiyorum. Bir win7 ve uzak python27 içinde Cygwin64 yüklü My emacs24.5 CnetOS 7. piton sever hakkında My emacs yapılandırma dosyası ile başka PC'de anaconda2 tarafından yüklenir:Python kabuğundaki serseri kullanarak Cygwin emacs24.5
(provide 'setup-python)
(require 'python-mode)
(setq python-shell-virtualenv-path "/ssh:[email protected]:/home/username/anaconda2/")
(add-hook 'python-mode-hook 'anaconda-mode)
Birincisi, giriş şifresi ve açık üzere C-x C-f /ssh:[email protected]:
çalışmalıdır Tramp yoluyla bir uzak dosya. Daha sonra bir python kabuğunu uzaktan açmak için M-x python
'u çalıştırın. ? Ancak, yanlış gibi uzaktan piton tarafından olumlu yanıt bazı şey vardır:
Python 2.7.11 |Anaconda 2.4.1 (64-bit)| (default, Dec 6 2015, 18:08:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/usr/tmp/py-shell-completion-setup-code.py'
>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/usr/tmp/py-ffap-setup-code.py'
>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/usr/tmp/py-eldoc-setup-code.py'
>>>
neden ve nasıl çözmek için söyle arada
, ben bir ipython kabuğunu açmak için M-x ipython
çalıştırırsanız, orada o cannot connect to X server
diyor neden bilmiyorum
Python 2.7.11 |Anaconda 2.4.1 (64-bit)| (default, Dec 6 2015, 18:08:32)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
: cannot connect to X server
: gibi bir hata.
Bu, python-mode.el dosyasındaki bir hata mıdır? – nannanmath
@nannanmath Henüz yok. Kurulumun garip görünüyor. Hataların avlanması daha fazla bilgi gerektirecektir, böyle basit bir Q/A sitesi için uygun değildir. –