In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the knowledge about "how to install numpy in Python". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
numpy installation
Numpy requires Python version 3.5 or above
1. Installation under Windows
· pip installation
python -m pip install numpy scipy matplotlib ipython jupyter pandas sympy nose -i https://pypi.douban.com/simple/
#It is recommended to use user installation, sending the--user flag to pip. Pip installs packages for local users and does not write to the system directory.
·Manual installation
Download the whl package that matches the system python version, paying attention to distinguishing between 32-bit and 64-bit.
#numpy1.18.4 + mklcp37cp37mwin_amd64.whl
pip install numpy1.18.4 + mklcp37cp37mwin_amd64.whl
2.Install under ubuntu
sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
3.Centos installation
sudo dnf install numpy scipy python-matplotlib ipython python-pandas sympy python-nose atlas-devel
·Manual installation
#Install dependencies
[root@localhostmyhaspl]#yum install gcc
[root@localhostmyhaspl]#yum install python-devel
[root@localhostmyhaspl]# wget http://jaist.dl.sourceforge.net/project/numpy/NumPy/1.11.2/numpy-1.11.2.tar.gz
[root@localhost myhaspl]# tar -xzvf numpy-1.11.2.tar.gz
[root@localhost myhaspl]# cd numpy-1.11.2
[root@localhost numpy-1.11.2]# python setup.py install
4.Mac installation
python -m pip install numpy scipy matplotlib
·Manual installation
First download the installation package; then extract it. Go to the installation directory and execute:
sudo python setup.py install
"How to install numpy in Python" is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.