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.
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.
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.
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
When building a program created by another person from the source code, be careful about the language environment.
That's it.
Recommended Posts