Closed jayapalrb closed 2 years ago
You have somehow installed an incompatible version of setuptools in that user's Python site-packages. Remove that and things will work.
Beyond that, Python 3.5 is EoL, which means it won't have community support -- I recommend reaching out to the redistributors that you're getting Python 3.5 from (if you're getting it from one), or to upgrade to a supported version of Python.
jayapalb@jayapalb-bxdsw:/usr/src$ sudo curl https://bootstrap.pypa.io/pip/3.5/get-pip.py -o get-pip.py % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1863k 100 1863k 0 0 5740k 0 --:--:-- --:--:-- --:--:-- 5733k jayapalb@jayapalb-bxdsw:/usr/src$ sudo python3 get-pip.py --force-reinstall Traceback (most recent call last): File "get-pip.py", line 23974, in
main()
File "get-pip.py", line 199, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 121, in bootstrap
import setuptools # noqa
File "/home/jayapalb/.local/lib/python3.5/site-packages/setuptools/init.py", line 18, in
from setuptools.dist import Distribution
File "/home/jayapalb/.local/lib/python3.5/site-packages/setuptools/dist.py", line 294
warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
^
SyntaxError: invalid syntax
jayapalb@jayapalb-bxdsw:/usr/src$