About installing numpy in python

Asked 1 years ago, Updated 1 years ago, 111 views

I looked it up and found that numpy can be installed as exe.

What is the difference between installing through pip and installing through exe file?

python numpy numpy-install

2022-09-21 19:29

1 Answers

First of all, numpy is a c extension module.

In other words, it is coded as c and requires a c compiler to make it binary, and it is distributed as a dynamic library such as so or pyd(dll).

It is difficult for all python developers (especially those working on Windows) to have a c compiler and know the relevant knowledge. For that reason, you might distribute it as a setup file (exe). The advantage is that the compiled binary module (c extension module) can be installed easily.

On the other hand, if you install it with pip, you can compile it as a source and install it. Platforms such as Linux and Mac basically make it easy to install compilers such as gcc, so you can get a binary of a more optimized state (as you want or as you want) and keep it up to date.

In conclusion, there is no difference in usage unless it is a version issue.


2022-09-21 19:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.