How to install numpy and pandas in windows

I will tell you that I program n00b according to stack standards. I have experience analyzing data and creating scripts - this is what I do professionally in a financial firm, but I have no idea what I'm doing in the background.

I am trying to start using pandas and python --- moving away from matlab / vba, but I cannot figure out how to install the pandas library.

When I try to import pandas, I get an error that the numpy module is missing. I tried installing ezsetup / pip (I donโ€™t know what it is) ... and I have no idea where to enter this command $ python get-pip.py

Sometimes, when I try to import pandas , I get an error, cannot import the hash name table

I have no idea what this means, and I'm not going anywhere.

Update

Ok, I installed anaconda, and it seems to me that I can import numpy and pandas directly from the console. At the same time, when I try to write a base time series and construct it using the pandas syntax, I get an error that the "series is not defined" as such, I'm not sure if it really works

  In [1]: import matplotlib.pyplot as plt In [2]: ts = Series(randn(1000), index=date_range('1/1/2000', periods=1000)) In [3]: ts = ts.cumsum() In [4]: ts.plot() 
+8
python numpy pandas installation
source share
4 answers

The best resource for third-party modules for Windows is the Christoph Gohlke Python Extension Pack for Windows . Each module is available as a self-extracting .exe installer, for use with the python.org version of Python - make sure you are correct for your version and architecture.

While NumPy does not require any other packages, pandas , so make sure you get them. The installation order does not matter.

The advantages of this resource over a distribution such as Anaconda or Enthought are that Dr. Gohlke constantly updates packages, allowing you to run the latest versions of modules. In addition, almost all modules have several versions of Python, and some of the other distributions are based only on Python 2.7.

The downside is that you need to install each package individually, and there is no package manager to handle dependencies.

+11
source share

Itโ€™s best to use a pre-packaged solution, Anaconda or Enthought , especially with windows

+6
source share

I had the same headaches and the solution I finally found was to install python xy . This seems to include all the packages I have ever dreamed of using, and the weeks of frustration evaporated almost instantly (apply to pandas and many others. This is a great collection of everything you need, including most of the libraries mentioned above)

While YMMV, Enthought Canopy caused a problem after release after release for my installation. I advise you to avoid.

+3
source share

Try the following: it should work.

Go to the folder where Python is located (C: \ Python34) Run the hit command:

 python -m pip install pandas 

NUMPY installs automatically after installing Pandas.

+1
source share

All Articles