Pasé todo el día ayer haciendo una copia de seguridad de mi disco duro, limpiando la instalación de Mac OSX Yosemite, y ahora estoy tratando de poner todas mis cosas en orden como estaban antes.
Tengo powerline instalado correctamente (aparece en tmux) pero cuando abro vim, obtengo:
You need vim compiled with Python 2.6, 2.7 or 3.2 and later support for
Powerline to work...
He intentado:
brew uninstall python macvim
brew install python
brew install --override-system-vim macvim
Aquí está la salida de brew install python
:
==> Downloading https://homebrew.bintray.com/bottles/python-2.7.9.yosemite.bottle.10.tar.gz
Already downloaded: /Library/Caches/Homebrew/python-2.7.9.yosemite.bottle.10.tar.gz
==> Pouring python-2.7.9.yosemite.bottle.10.tar.gz
==> Caveats
Pip and setuptools have been installed. To update them
pip install --upgrade pip setuptools
You can install Python packages with
pip install <package>
They will install into the site-package directory
/usr/local/lib/python2.7/site-packages
See: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md
.app bundles were installed.
Run `brew linkapps python` to symlink these to /Applications.
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3
Target /usr/local/bin/2to3
already exists. You may want to remove it:
rm '/usr/local/bin/2to3'
To force the link and overwrite all conflicting files:
brew link --overwrite python
To list all files that would be deleted:
brew link --overwrite --dry-run python
Possible conflicting files are:
/usr/local/bin/2to3 -> /Library/Frameworks/Python.framework/Versions/3.4/bin/2to3
==> /usr/local/Cellar/python/2.7.9/bin/python -s setup.py --no-user-cfg install --force --verbose --insta
==> /usr/local/Cellar/python/2.7.9/bin/python -s setup.py --no-user-cfg install --force --verbose --insta
==> Summary
🍺 /usr/local/Cellar/python/2.7.9: 4810 files, 78M
y aquí está la salida de brew install --override-system-vim macvim
:
==> Downloading https://github.com/b4winckler/macvim/archive/snapshot-73.tar.gz
Already downloaded: /Library/Caches/Homebrew/macvim-7.4-73.tar.gz
File "<string>", line 2
print distutils.sysconfig.get_config_var("PYTHONFRAMEWORKPREFIX")
^
SyntaxError: invalid syntax
==> ./configure --with-features=huge --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enab
==> make
==> Caveats
.app bundles were installed.
Run `brew linkapps macvim` to symlink these to /Applications.
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/view
Target /usr/local/bin/view
is a symlink belonging to vim. You can unlink it:
brew unlink vim
To force the link and overwrite all conflicting files:
brew link --overwrite macvim
To list all files that would be deleted:
brew link --overwrite --dry-run macvim
Possible conflicting files are:
/usr/local/bin/view -> /usr/local/Cellar/vim/HEAD/bin/view
/usr/local/bin/vim -> /usr/local/Cellar/vim/HEAD/bin/vim
/usr/local/bin/vimdiff -> /usr/local/Cellar/vim/HEAD/bin/vimdiff
==> Summary
🍺 /usr/local/Cellar/macvim/7.4-73_1: 1810 files, 28M, built in 66 seconds
Lo intenté ln -s /Applications/MacVim.app /usr/local/Cellar/macvim/7.4-73_1/
, pero dice que el archivo ya existe.
Tengo miedo de intentar más vincular / desvincular porque, además de tener un montón de basura en mi computadora de 4 años de la que quería deshacerme, realicé la reciente limpieza e instalación limpia porque rompí el Python incorporado que desvincula cosas que no debería tener.
Por cierto, aquí está mi camino:
aweeeezy$ echo $PATH
/Users/aweeeezy/anaconda/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:
/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/
Python.framework/Versions/3.4/lib/python3.4:/Library/Frameworks/Python.framework/Versions/
2.7/lib/python2.7:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
Al tratar de encontrar una solución a este problema, el pensamiento cruzó mi mente de que necesito tener un Python diferente al frente de mi camino, pero a) así era mi camino antes y Powerline aún funcionaba, yb) quiero Anaconda Python en la parte delantera de mi camino para que pueda usar IPython.
fuente