Can't Seem to install pandas in python
See original GitHub issueI tried running
sudo pip install pandas
Problem description
Tried Installing pandas for python 2.7 . Can’t seem to figure it out. Checked similar issues, but they didn’t seem to help me.
Numpy version : 1.16.6 (tried other versions as well)
Expected Output
Pandas installed successfully.
####Got this output instead:
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
Collecting pandas
Using cached pandas-1.0.3.tar.gz (5.0 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Users/kd/Library/Python/2.7/lib/python/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/30/00757twx74l3jppj5c4nq7380000gn/T/tmpUhhGpr
cwd: /private/var/folders/30/00757twx74l3jppj5c4nq7380000gn/T/pip-install-6SkeqV/pandas
Complete output (19 lines):
Traceback (most recent call last):
File "/Users/kd/Library/Python/2.7/lib/python/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
main()
File "/Users/kd/Library/Python/2.7/lib/python/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/kd/Library/Python/2.7/lib/python/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/30/00757twx74l3jppj5c4nq7380000gn/T/pip-build-env-IK81LY/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 146, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/private/var/folders/30/00757twx74l3jppj5c4nq7380000gn/T/pip-build-env-IK81LY/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 127, in _get_build_requires
self.run_setup()
File "/private/var/folders/30/00757twx74l3jppj5c4nq7380000gn/T/pip-build-env-IK81LY/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 243, in run_setup
self).run_setup(setup_script=setup_script)
File "/private/var/folders/30/00757twx74l3jppj5c4nq7380000gn/T/pip-build-env-IK81LY/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 142, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 42
f"numpy >= {min_numpy_ver}",
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Users/kd/Library/Python/2.7/lib/python/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/30/00757twx74l3jppj5c4nq7380000gn/T/tmpUhhGpr Check the logs for full command output
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Can't install pandas library - Stack Overflow
I am fairly new to using pip and python. I installed other libraries in python but can't install pandas. It gives lots of...
Read more >Can't install pandas via pip? : r/learnpython - Reddit
So my default python version is 3.7. I try "pip install pandas" in the cmd again: C:\Users\shypa>pip install pandas. Requirement already ...
Read more >Unable to Install Pandas on Python 3.9.0a3 #32045 - GitHub
Try this, in cmd : pip list and read what package you have installed. skip if it is in the list. pip install...
Read more >Installation — pandas 1.5.2 documentation
The easiest way to install pandas is to install it as part of the Anaconda distribution, a cross platform distribution for data analysis...
Read more >Error installing pandas on a Mac in python 3
I have python script to run that calls pandas. So I tried to instal the pandas package using: python3 -m pip install pandas....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @JohannesBuchner, there is pandas 0.24 (I think) that supports python 3.5 other than that you need to python 3.6.
Faced the same issue with Python=3.5, but it looks like it is already fixed some minutes ago.