报错: Traceback (most recent call last): File “/usr/local/bin/pip”, line 9, in load_entry_point(‘pip==21.0.1’, ‘console_scripts’, ‘pip’)() File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 351, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 2363, in load_entry_point return ep.load() File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 2088, in load entry = import(self.module_name, globals(),globals(), [‘name’]) File “/usr/local/lib/python2.7/dist-packages/pip/_internal/cli/main.py”, line 60 sys.stderr.write(f"ERROR: {exc}") ^ SyntaxError: invalid syntax
报错如图:
sudo pip install --upgrade "pip < 21.0"
wget https://bootstrap.pypa.io/2.7/get-pip.py
python get-pip.py
wget https://bootstrap.pypa.io/2.7/get-pip.py
sudo python2 get-pip.py
sudo pip install scipy==1.1.0
解决!!