私はVIMを使ってPythonコードを編集して実行しようとしています。 Pythonコードを実行するときにAnacondaのインストール(Python 3.6.0 :: Anaconda 4.3.1(64-bit))を使用したいと思います。私はyoucompletemeからの命令を使用してVIMをインストールAnacondaでVIMを使うUbuntuにPythonをインストールするGNOME3
$ which python
/home/richard/anaconda3/bin/python
$ which python3
/home/richard/anaconda3/bin/python3
$ python -V
Python 3.6.0 :: Anaconda 4.3.1 (64-bit)
$ python3 -V
Python 3.6.0 :: Anaconda 4.3.1 (64-bit)
のvimからのPythonのバージョンを確認する
...
:!which python
/usr/bin/python
:!which python3
/usr/local/bin/python3
端末からのPythonのバージョンを確認しています...、私の避難所であるがまだプラグインはインストールされていません。 Python3のサポートのためにvimを設定しました。 .bashrcファイルに次の行を持っているhttps://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source
$ ./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-python3interp=yes \
--with-python3-config-dir=/usr/local/lib/python3.6/config-3.6m-x86_64-linux-gnu \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-gui=gnome2 --enable-cscope --prefix=/usr \
--with-compiledby=Richard
...
# added by Anaconda3 4.3.1 installer
export PATH="/home/richard/anaconda3/bin:$PATH"
私の目標は、アナコンダは、VIMと使用パンダ、numpyの、など任意のヘルプまたはからのPythonのインストールを実行することです提案は非常に高く評価されています!
残念ながら、VIMのコードを実行すると、Anacondaのインストールが使用されていません。 Anacondaのpython '/ home/richard/anaconda3/bin/python3'を使用するようにリダイレクトする方法を理解してもらいたい – rlrandolph3