Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error installing numpy
#1
I am working on windows server 2012 R2 and trying to install numpy 1.11.2 to work with python 3.7.2 ...some how its not getting installed and asking for visual c++ setup tools to be installed..????
it was difficult to copy paste from cmd all the detail error....
can anyone help??
Reply
#2
What did u run. pip install numpy should work
Reply
#3
(Jul-03-2019, 01:09 PM)srm Wrote: I am working on windows server 2012 R2 and trying to install numpy 1.11.2 to work with python 3.7.2 ...some how its not getting installed and asking for visual c++ setup tools to be installed..????
It should not be(asking for visual c++) with Python 3.7.2 and pip 19.1.1(newest version).
In eailer version many years ago needed to go Gohlke and get numpy wheel.
Can still do that,eg for Python 3.7 and 64-bit(version of Python 3.7).
pip install numpy‑1.16.4+mkl‑cp37‑cp37m‑win_amd64.whl
Quick demo with virtual environment as it's now build into Python 3.7.
It's just like new Python installation,if you don't know what virtual environment is.
See that pip install numpy download and install,and do not ask for visual c++.
# Make environment 
E:\1
λ python -m venv test_env

# Cd in
E:\1
λ cd test_env\

# Activate
E:\1\test_env
λ E:\1\test_env\Scripts\activate

# Check pip
(test_env) E:\1\test_env
λ pip -V
pip 19.0.3 from e:\1\test_env\lib\site-packages\pip (python 3.7)

# Upgrade pip
(test_env) E:\1\test_env
λ python -m pip install --upgrade pip
Collecting pip .... 
Successfully installed pip-19.1.1

# Check pip
(test_env) E:\1\test_env
λ pip -V
pip 19.1.1 from e:\1\test_env\lib\site-packages\pip (python 3.7

# Install numpy
(test_env) E:\1\test_env
λ pip install numpy
Collecting numpy ...  
Successfully installed numpy-1.16.4

# Test numpy
(test_env) E:\1\test_env
λ python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.16.4'
>>> exit()
Reply
#4
ok let me try it...thnx
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Numpy] How to store different data type in one numpy array? water 7 535 Mar-26-2024, 02:18 PM
Last Post: snippsat
  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'" kalle 2 2,598 Jul-19-2022, 06:31 AM
Last Post: paul18fr
  trouble installing numpy GloryHoleLover 3 2,243 Mar-29-2020, 06:35 AM
Last Post: ndc85430
  Simple numpy reshape error wih contour3D AdeIsHere 0 2,184 Sep-17-2019, 12:01 PM
Last Post: AdeIsHere
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 2,976 Apr-09-2019, 04:54 PM
Last Post: PhysChem
  Return ERROR when installing pyopencl Helcio_Sarabando 1 4,154 Sep-08-2018, 11:23 PM
Last Post: Larz60+
  Error when installing Seaborn package using pip chawkins 3 5,579 Jul-16-2018, 12:12 AM
Last Post: Larz60+
  Help installing NumPy Larry 18 19,061 Feb-20-2018, 09:17 AM
Last Post: Larry

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020