A magic word (?) That may save people who are addicted to building using the Intel compiler of Python + Numpy.

What are you talking about?

It's a reminder because I spent a little time building Python + Numpy from source code using the Intel compiler. It's a pretty silly story for those who know it. On the other hand, beginners are easy to get into. Due to the problem peculiar to the Japanese environment, it does not come out even if I collect information from overseas sites. However, if you just use Python + Numpy, you can use PIP without any trouble. For some reason, I couldn't use PIP.

environment

How do you do Build?

Basically, Python ends with configure + Make. There is nothing special about it. On the other hand, I got stuck in Numpy build. The basic method is Intel's official website It is written in detail in. Use setup.py.

What did you get into?

When building Numpy, I get an error saying that the version of Intel Compiler does not match. This was a problem peculiar to the Japanese environment.

Magical words to save you

LANG=C

LANG=C python3 setup.py config--compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem install 

Lesson

When building a program created by another person from the source code, be careful about the language environment.

That's it.

Recommended Posts

A magic word (?) That may save people who are addicted to building using the Intel compiler of Python + Numpy.
How to put a lot of pipelines together and put them away at once
I made a LINE Bot that sends recommended images every day on time
A magic word (?) That may save people who are addicted to building using the Intel compiler of Python + Numpy.
A script that can perform stress tests according to the number of CPU cores
Save an array of numpy to a wav file using the wave module
A story that struggled to handle the Python package of PocketSphinx
A story about a person who uses Python addicted to the judgment of an empty JavaScript dictionary
[python] A note that started to understand the behavior of matplotlib.pyplot
[Python] A program that rotates the contents of the list to the left
Heroku deployment of the first Django app that beginners are addicted to
[Python] A program that calculates the number of socks to be paired
[Python] [Word] [python-docx] Try to create a template of a word sentence in Python using python-docx
A collection of Numpy, Pandas Tips that are often used in the field
[Circuit x Python] How to find the transfer function of a circuit using Lcapy
[Python] Solution to the problem that elements are linked when copying a list
I made a script to record the active window using win32gui of Python
[Python] You can save an object to a file by using the pickle module.
Cut a part of the string using a Python slice
[Python] A program that compares the positions of kangaroos.
Python Note: The mystery of assigning a variable to a variable
ABC's A problem analysis for the past 15 times to send to those who are new to Python
A story that makes it easy to estimate the living area using Elasticsearch and Python
The shortest memo for building a python environment that takes less than 5 minutes to work.
Machine learning A story about people who are not familiar with GBDT using GBDT in Python
A Python script that allows you to check the status of the server from your browser
What kind of environment should people who are learning Python for the first time build?
[Python] A program to find the number of apples and oranges that can be harvested
A Python script that compares the contents of two directories
[AWS] A story that may be helpful for those who are new to Lambda-Python and DynamoDB
I wrote AWS Lambda, and I was a little addicted to the default value of Python arguments
Note that I was addicted to accessing the DB with Python's mysql.connector using a web application.
A story that is a little addicted to the authority of the directory specified by expdp (for beginners)
[Python] I tried to make a simple program that works on the command line using argparse.
Raspberry Pi? What's that? Level of hardware Inexperienced college students created a system to grasp if there are people in the office