How to install pandas from pip on windows cmd?

前端 未结 8 1269
情歌与酒
情歌与酒 2021-01-30 13:43

I am trying to install pandas using pip to run some pandas-based Python programs. I already installed pip. I tried googling and SO\'ing but didn\'t find a solution to this error

8条回答
  •  逝去的感伤
    2021-01-30 13:57

    Reply to abccd and Question to anyone:

    The command: C:\Python34\Scripts>py -3 -m pip install pandas executed just fine. Unfortunately, I can't import Pandas.

    Directory path: C:\users\myname\downloads\miniconda3\lib\site-packages

    My Question: How is it that Pandas' dependency packages(numpy, python-dateutil, pytz, six) also having the same above directory path are able to import just fine but Pandas does not?

    import pandas
    
    Traceback (most recent call last):
      File "", line 1, in 
        import pandas
    ImportError: No module named 'pandas'
    

    I finally got Pandas reinstalled and imported with the help of the following web pages: *http://pandas.pydata.org/pandas-docs/stable/pandas.pdf (Pages 403 and 404 of 2215 ... 2.2.2 Installing Pandas with Miniconda) *https://conda.io/docs/user-guide/install/download.html *https://conda.io/docs/user-guide/getting-started.html

    After installing Miniconda, I created a new environment area to get Pandas reinstalled and imported. This new environment included the current Python version 3.6.3. I could not import Pandas using Python 3.4.4.

提交回复
热议问题