我有Anaconda Python3.6。我一直在試圖通過下面的方法重新安裝的MacVim薩爾瓦多隊長:MacVIM - Python 3錯誤
brew tap macvim-dev/macvim
brew install --HEAD macvim-dev/macvim/macvim --with-properly-linked-python2-python3
我跟着從安裝的MacVim here
我得到以下錯誤的指令:
if_python3.c:75:10: fatal error: 'Python.h' file not found
#include <Python.h>
^
1 error generated.
make[1]: *** [objects/if_python3.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [first] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/macvim-dev/homebrew-macvim/issues
Error: Your Xcode (7.3.1) is outdated.
Please update to Xcode 8.2.1 (or delete it).
Xcode can be updated from the App Store.
Error: You have MacPorts or Fink installed:
/opt/local/bin/port
This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.
sudo mv /opt/local ~/macports
我在網上看了一下,我發現Fedora上有類似的bug報告here。
我也看了一下錯誤,並試圖更新X-Code。問題是我現在不想通過操作系統進行升級,只想更新X-Code。我查看了App Store Update,並點擊了「更新」,但似乎沒有工作。當我點擊「更新」時,它會停頓,沒有任何反應。
所以,我擡頭命令
softwareupdate --list
和X-碼不顯示在那裏。我在Stack Overflow上查找了this,評論似乎清楚地表明即使是選定的答案也是錯誤的。我不想升級我的操作系統,但我想用python3支持來安裝MacVIM。我希望有人能幫我解決這個問題?
注意:我還沒有嘗試卸載Macports或Fink(不知道這是什麼)。這在錯誤中提到。他們的搬遷或移動會有幫助嗎?我只是不想做任何我可能後悔的事情。