Use pip install or easy_install to install various Python packages. cc failed with exit status 1, pipeasy_install

Source: Internet
Author: User

Use pip install or easy_install to install various Python packages. cc failed with exit status 1, pipeasy_install

 

Problems encountered

If you encounter a problem when installing various packages of Python using pip install or easy_install on Mac, you should see this article to solve the problem.

Previously, python frameworks and packages were directly installed and used on vps. I didn't expect this problem to occur during Mac installation. The first thing I thought was to see if anyone on Baidu had the same problem, the results were disappointing. Although there is no useful answer to this question, you can only turn to Google.

Solution

First, installDeveloper toolsI forgot this one at the time. InstallDeveloper toolsIt is very simple. You only needTerminalEnter the following command.

xcode-select --install

If the following error is still reported, it is a problem with the OSX's own mechanism. (I didn't take a closer look at the mechanism. If you want to know what it is, Google it yourself ), here, you just need to enter two lines to shut up what it doesn't understand.

export CFLAGS=-Qunused-argumentsexport CPPFLAGS=-Qunused-arguments

If the problem persists, I won't be able to help.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.