python install pip and pandas-data reader on Mac

418 Views Asked by At

I saw some threads suggest to install pip first and then execute pip install panda-reader

Execute in Terminal the following command: easy_install pip If you need admin privileges, please execute the following command instead: sudo easy_install pip Then, you can proceed with pip-installing packages in Terminal in the universal way.

However it occur syntax error when I run sudo easy_install pip without running anaconda navigator on Mac.

I also tried another method to execute the code in anaconda navigator. However, the code is not running at all.

Attached with two cases screenshots. anaconda navigator sudo easy_install pip

Greatly appreciate if you can advise the steps to install the pandas-data reader on Mac

Best regards, Kenneth

I am looking for a solution to install pip install panda-reader that able to perform data analysis in my Jupyter Notebook.

1

There are 1 best solutions below

1
0xelight On

Your error in the screen looks like you have a python that doesn't support variable typing, for example: function thisisafunction(var:str): The problem is that your version of python can't interpret this code because it's too old and doesn't know what is this declaration.

To solve this you need to update your version of python like 3.10 version. See https://www.python.org/downloads/