I am trying to install the pandas library on my ubuntu machine but it is not getting installed.
pip install pandas pip3 install pandas I have used pip install pandas
Downloading/unpacking pandas Downloading pandas-0.25.1.tar.gz (12.6MB): 12.6MB downloaded Running setup.py (path:/tmp/pip-build-WzvvgM/pandas/setup.py) egg_info for package pandas Traceback (most recent call last): File "<string>", line 17, in <module> File "/tmp/pip-build-WzvvgM/pandas/setup.py", line 21, in <module> import versioneer File "versioneer.py", line 1629 print("Adding sample versioneer config to setup.cfg", file=sys.stderr) ^ SyntaxError: invalid syntax Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 17, in <module> File "/tmp/pip-build-WzvvgM/pandas/setup.py", line 21, in <module> import versioneer File "versioneer.py", line 1629 print("Adding sample versioneer config to setup.cfg", file=sys.stderr) ^ SyntaxError: invalid syntax ---------------------------------------- Cleaning up... Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-WzvvgM/pandas Storing debug log for failure in /home/user508/.pip/pip.log
python -Vandpip --version?pandas>=0.25dropped support for Python 2.7 and all Python 3 versions before 3.5, so usepip install "pandas<0.25"for that matter.pipenvorvirtualvenvcan avoid this problem.