Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8635267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:56:01+00:00 2026-06-12T09:56:01+00:00

I installed macvim with homebrew, with python support. My incantation was as follow: brew

  • 0

I installed macvim with homebrew, with python support. My incantation was as follow:

brew install macvim --override-system-vim

Now when I open a python file, I get a series of errors if I try to import anything. e.g. if I import re I see ImportError: no module name re.

The first time I open macvim after installing, I get 'import site' failed; use -v for traceback in the terminal where I opened macvim. This is after running my first python command.

What does this mean and and how do I fix it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:56:02+00:00Added an answer on June 12, 2026 at 9:56 am

    I got this working with a quick hack where you temporarily point the system python to your preferred python:

    cd /System/Library/Frameworks/Python.framework/Versions
    sudo mv Current Current-sys
    sudo mv 2.7 2.7-sys
    sudo ln -s /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7 Current
    sudo ln -s /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7 2.7
    
    brew rm macvim # optionall, only if you had it installed previously  
    brew install macvim --override-system-vim
    
    sudo mv Current-sys Current
    sudo mv 2.7-sys 2.7
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have python3 installed via homebrew: brew install python3 --framework I have the vim
I just installed macvim yesterday and I installed vim latex today. One of the
I have a Markdown syntax highlighting plugin installed for Vim (MacVim). It's working well,
I have installed MacVim, and https://github.com/skwp/dotfiles (including all the dependencies such as zsh, etc).
I have a few installs—notably Node, MacVim, and Taskwarrior—which I installed through the installers
Installed rubyinstaller-1.8.7-p358.exe, then tried to install jammit , but the config.gem command isn't being
Installed a fresh Delphi xe2. Open a new project (vcl forms application). opened the
I installed Python 3.x (besides Python 2.x on Ubuntu) and slowly started to pair
I have installed MacVim but I cannot figure out how to do some formatting
I've got MacVim and Janus installed. I have recently added set rnu to my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.