How to install pandas from pip on windows cmd?

前端 未结 8 1077
情歌与酒
情歌与酒 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:59

    In my opinion, the issue is because the environment variable is not set up to recognize pip as a valid command.

    In general, the pip in Python is at this location:

    C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts > pip
    

    So all we need to do is go to Computer Name> Right Click > Advanced System Settings > Select Env Variable then under system variables > reach to Path> Edit path and add the Path by separating this path by putting a semicolon after the last path already was in the Env Variable.

    Now run Python shell, and this should work.

    0 讨论(0)
  • 2021-01-30 14:00

    pip install pandas make sure, this is 'pandas' not 'panda'

    If you are not able to access pip, then got to C:\Python37\Scripts and run pip.exe install pandas.

    Alternatively, you can add C:\Python37\Scripts in the env variables for windows machines. Hope this helps.

    0 讨论(0)
提交回复
热议问题