I'm on Linux Mint 18.3 Sylvia.
I have an issue with pip and python3, and no other issues helped me actually.
dsds
Everything work when I do
python -m pip --version pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
But whenusing python3 doing
python3 -m pip --version
I get the following message
Traceback (most recent call last): File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/max/.local/lib/python3.5/site-packages/pip/__main__.py", line 21, in <module> from pip._internal.cli.main import main as _main File "/home/max/.local/lib/python3.5/site-packages/pip/_internal/cli/main.py", line 60 sys.stderr.write(f"ERROR: {exc}") ^ SyntaxError: invalid syntax
Any ideas to how solve this ? Thanks you!
edit: python command is Python 2.7.12
edit2: I originally wanted to install matplotlib as described here. By using the command python -m pip install -U pip
as told in the installation process. This is probably the issue, as now it show the error for both python and python3 command...