Installing Numpy on 64bit Windows 8.1 with Python 2.7 - python

I am trying to install Numpy on Python 2.7 and I am using Windows 8.1. When I run Numpy from this link it says, "Python 2.7 required, which was not found in the registry ". How can resolve this issue, I already installed Python 2.7?

For Windows, you should check out Chris Gohlke's page:
http://www.lfd.uci.edu/~gohlke/pythonlibs
He has some Numpy builds there for Python 2.7.

You can first install wheel using pip.
pip install wheel
Then download the .whl file for Numpy from Chris Gohlke's page.
Then go to the directory where you downloaded the package.whl file in cmd and do the following
pip install package_you_downloaded.whl
I experienced a similar broken toolchain error while installing Numpy. You can check it here.

I changed to anaconda a while ago and in my mind its the best and most dynamic package manager for all platforms.
http://docs.continuum.io/anaconda/install.html

correct command after installing pip is:
python -m pip install numpy

You should use pip to install Numpy and any other librarys
check this for how to install pip
after installing, go to your command line and enter
pip install numpy

Related

I can't install the "numba" package via "pip"

enter image description here
I can't install the "numba" package via "pip". I want to install the "numba" package, but an error appears every time
please check your python and numpy version . Numba is compatible with Python 3.6 or later, and Numpy versions 1.15 or later. Please check the documentation
https://numba.pydata.org/numba-doc/latest/user/installing.html
Installing using pip on x86/x86_64 Platforms
Binary wheels for Windows, Mac, and Linux are also available from PyPI. You can install Numba using pip:
$ pip install numba

how to install packages in python 3.3.1

I am new to Python and I have to use Python 3.3.1 version instead of latest one...
pip install numpy
it returns
SyntaxError: invalid syntax
I tried using the way i installed on python 3.6 but seems to be not working here..
I don't know how to install packages like numpy, pandas, scipy, sci-kit learn, matplotlib etc... in the Python 3.3.1, could you please help..?
Do i need to install pip separately... ?
Thanks in advance.
If you are in window try with:-
Open CMD and
python -m pip install numpy
If this is not working try with this
just type it as your python programe and run it
import pip
pip.main(["install","numpy"])
In my windows 10 machine, the pip.exe is in C:\Python36\Scripts folder. So I install required packages by either using command C:\Python36\Scripts\pip install package_name or first cd C:\Python36\Scripts and then pip install package_name. So far it worked me in different versions of pythons installed.
As suggested by ostue, please make sure that pip is installed with the python distribution.

Unable to install Statsmodels...python

I am using 32 bit cmd, 64 bit windows, python 2.7
when I type the command pip install statsmodels
I get the following error for some module of scipy...
Failed building wheel for Scipy Failed cleaning build dir for scipy
install numpy
pip install numpy
If you face installation issues for numpy, get the pre-built windows installers from http://www.lfd.uci.edu/~gohlke/pythonlibs/ for your python version (python version is different from windows version).
numpy 32-bit: numpy-1.11.1+mkl-cp27-cp27m-win32.whl
numpy 64-bit: numpy-1.11.1+mkl-cp27-cp27m-win_amd64.whl
Later you require VC++ 9.0, then please get it from below link Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
Then install
Get the pre-built windows installers from http://www.lfd.uci.edu/~gohlke/pythonlibs/ for your python version (python version is different from windows version).
Scipy 32-bit: scipy-0.18.0-cp27-cp27m-win32.whl
Scipy 64-bit: scipy-0.18.0-cp27-cp27m-win_amd64.whl
If it fails saying whl is not supported wheel on this platform , then upgrade pip using python -m pip install --upgrade pip and try installing scipy
Now try
pip install scipy
Then try
pip install statsmodels
It should work like a charm
I have tried to write this on cmd.exe and it worked.
pip install statsmodels==0.6.0
install statsmodels for python 2.7 in windows
An easier way to install python libraries on Windows with C/C++/Fortran/... dependencies is to use conda. conda is available in MiniConda or Anaconda continuum products.
Another easy way to install scientific python libraries on windows is to use Christoph Gohlke's windows web page.
If you have no much idea about all of them and how to manage dependencies on windows I recommend you uninstalling your Python and installing anaconda. Anaconda already has Numpy, Scipy, Matplotlib,..., and statsmodels pre-installed (see the list of the packages included in the anaconda distribution).
Make sure you are using the latest version of pip
To check which version you are using try:
pip --version
To install statsmodels you can either go to cmd.exe or if you are using python pycharm use "Terminal Window" and type:
pip install statsmodels==0.9.0

How can I install NumPy on Windows using 'pip install'?

I want to install NumPy using the pip install numpy command, but I get the following error:
RuntimeError: Broken toolchain: cannot link a simple C program
I'm using Windows 7 32 bit, Python 2.7.9, pip 6.1.1 and some MSVC compiler. I think it uses the compiler from Visual C++ 2010 Express, but actually I'm not sure which one, because I have several Visual Studio installations.
I know that there are prebuilt packages for Windows, but is there some way to do it just by typing pip install numpy?
I think that there could be other packages which must be compiled before usage, so it's not only about NumPy. I want to solve the problem with my compiler, so I could easily install any other similar package without necessity to search for prebuilt packages (and hope that there are some at all).
Check the installation of Python 2.7, and then install/reinstall pip which is described here. Then a open command line windows and write:
pip install numpy
Or
pip install scipy
If already installed, try this:
pip install -U numpy
Installing extension modules can be an issue with pip. This is why Conda exists. Conda is an open-source BSD-licensed cross-platform package manager. It can easily install NumPy.
Two options:
Install Anaconda here
Install Miniconda here and then go to a command line and type conda install numpy (make sure your PATH includes the location Conda was installed to).
Frustratingly, the NumPy package published to PyPI won't install on most Windows computers: Windows wheel package (.whl) on Pypi #5479
Instead:
Download the NumPy wheel for your Python version from Archived: Unofficial Windows Binaries for Python Extension Packages, NumPy
Install it from the command line:
pip install numpy-1.10.2+mkl-cp35-none-win_amd64.whl
As of March 2016, pip install numpy works on Windows without a Fortran compiler. See here.
pip install scipy still tries to use a compiler.
July 2018: mojoken reports pip install scipy working on Windows without a Fortran compiler.
py -m pip install numpy
Worked for me!
Install miniconda (here)
After installed, open Anaconda Prompt (search this in Start Menu)
Write:
pip install numpy
After installed, test:
import numpy as np
First go through page Download Python to download Python 3.6.1 or 2.7.13 either of your choice. I preferred to use Python 2.7 or 3.4.4.
Now after installation, go to the folder name python27 or python34, and click on the script. Now here open the command prompt by left clicking and Run as administrator.
After the command prompt appears, write "pip install numpy" there. This will install the latest version of NumPy and installing it will show a success comment. That's all.
Similarly, Matplotlib can be installed by just typing "pip install matplotlip". And now if you want to download SciPy, then just write "pip install scipy" and if it doesn't work then you need to download Python SciPy from SciPy: Scientific Library for Python and install it.
I had the same problem.
I decided in a very unexpected way. I just opened the command line as an administrator. And then typed:
pip install numpy

install python package to a specific version of python?

I have a remote machine with python 2.6 as the default package on the machine. I installed numpy using yum install numpy.
I then installed python 2.7 using the instructions available python 2.7 install link in the directory /usr/src/. I then put this alias
alias python=/usr/src/Python-2.7.8/python
in ~/.bashrc.
So numpy is already installed on the machine but python 2.7 can't pick it up? Should I uninstall it? How do I install it for version 2.7.
The commands would be vary helpful.
Could I pip install to a specific version? I tried this command but it is incorrect.
pip-2.7 install numpy
Thanks
you can do
pythonx.y -m pip install numpy
to install numpy on python version x.y

Categories