Use gcc-4.2 when compiling Python (MacOS)

I compiled with gcc-4.2 because some tests seem to fail with llvm-gcc-4.2. Specify the location of the header file for gcc-4.2 with CPPFLAGS. (If you do not do it, a compile error will occur.) It may vary depending on the environment.

pythonbrew install --configure="CC=/usr/bin/gcc-4.2 CXX=/usr/bin/g++-4.2 CPPFLAGS='-I/Developer/SDKs/MacOSX10.6.sdk/usr/lib/gcc/i686-apple-darwin10/4.2.1/include'" 2.7.3

Recommended Posts

Use gcc-4.2 when compiling Python (MacOS)
How to use gcc when compiling extension modules from setup.py on Mac
Python installation 2020 (macOS)
Use pydantic when reading environment variables in Python
Use thingsspeak from python
Use config.ini in Python
[Python] Use JSON with Python
Use fluentd from python
Use dates in Python
Use Valgrind in Python
Use MySQL from Python
Use mecab with Python3
Use DynamoDB with Python
[Python] format methodical use
Use python with docker
Use MySQL from Python
Use LiquidTap Python Client ②
Use communicate () when receiving output in a Python subprocess
Use profiler in Python
Use mecab-ipadic-neologd from python
Use LiquidTap Python Client ①
Solution when you want to use cv_bridge with python3 (virtualenv)
Use Python 3 introduced with command line tools on macOS Catalina
[python] A note when trying to use numpy with Cython
Use a macro that runs when saving python with vscode
Let's use def in python
Let's use python janome easily
Use Trello API with python
Use matplotlib on Ubuntu 12 & Python
Use let expression in Python
Use Measurement Protocol in Python
python3: How to use bottle (2)
Use callback function in Python
Story when iterating python tuple
Use parameter store in Python
[Python] Use a string sequence
[Python] How to use list 1
Python is painful. But use
Use HTTP cache in Python
Use TUN / TAP with Python
Use MongoDB ODM in Python
OpenCV3 installation for Python3 @macOS
Made python available on macOS
How to use Python argparse
Use Random Forest in Python
Use regular expressions in Python
Use Spyder in Python IDE
Specify options when running python
Python: How to use pydub
[Python] How to use checkio
Attention when os.mkdir in Python
Error when playing with python
Use configparser when using API
Use subsonic API with python3
[Python] How to use input ()
How to use Python lambda
[Python] How to use virtualenv
python3: How to use bottle (3)
python3: How to use bottle
Use e-Stat API from Python
How to use Python bytes