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

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

Related

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

Installing Numpy on 64bit Windows 8.1 with Python 2.7

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

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

How can I let pip know that I am interested in packages for python 3.4?

After an hour search, I have found no answer.
My Mac came with Python 2.7, but I have decided to upgrade to python 3.4.
I installed python 3.4 from python.org.
I can now use python 3.4 from terminal.
Pip still tries to download python 2.7 packages - numpy for 2.7 is "up to date".
When I try to --upgrade a package, for example numpy, I get "no permission" error. With sudo appended, the output is trash.
How can I let pip know that I am interested in packages for python 3.4?
Requirement already up-to-date: numpy in /Library/Python/2.7/site-packages
That's the problem. I want numpy to be up-to-date with Python 3.4.
You should be able to call a specific pip for your install, although it depends on which version you are running:
Starting at version 0.8:
pip-3.4 install numpy
and starting at version 1.5:
pip3.4 install numpy
If you don't have these, you should be able to just download pip and reinstall it, just be sure to call python 3.4 when you run the installer.
I would suggest to install a package manager such as macports brew and install the updated python version from them. After the latest version of python is setup use pip to install the version of numpy
In mac ports , you are able to select the default system python without messing with the path your self.
I would use Homebrew:
brew install python3
This should install Python3.4.1. Then to get pip:
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python3 get-pip.py
# Upgrade just in case...
pip3 install -U pip
Then use:
pip3 install numpy
And to run Python, use:
python3
(I only have one Python 3 installation, if you have multiple you'll need to be more specific with the version number)

Categories