Python Forum
Error installing numpy - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: Error installing numpy (/thread-19536.html)



Error installing numpy - srm - Jul-03-2019

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??


RE: Error installing numpy - SheeppOSU - Jul-03-2019

What did u run. pip install numpy should work


RE: Error installing numpy - snippsat - Jul-03-2019

(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()



RE: Error installing numpy - srm - Jul-08-2019

ok let me try it...thnx