Ubuntu-Zorin version is invalid-- Problems with Pip3

Hi, I'm using the default python3 version of 3.8.10
Lately whenever I try to install anythin with pip3, I get the following response

~$ pip3 install turtle
/home/Omega/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.36ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
/home/Omega/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2.0.0-ubuntu0.20.04.6-zorin1 is an invalid version and will not be supported in a future release
  warnings.warn(
/home/Omega/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.23ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
Collecting turtle
  Using cached turtle-0.0.2.tar.gz (11 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-d4tyzwsv/turtle/setup.py'"'"'; __file__='"'"'/tmp/pip-install-d4tyzwsv/turtle/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-d4tyzwsv/turtle/pip-egg-info
         cwd: /tmp/pip-install-d4tyzwsv/turtle/
    Complete output (6 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-d4tyzwsv/turtle/setup.py", line 40
        except ValueError, ve:
                         ^
    SyntaxError: invalid syntax
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

A few users have also raised concerns on Askubuntu and Stackoverflow but there is no response.

Anyone else face this issue ?

1 Like

This post covers some answers:

1 Like

Hi, this error is not limited to installing turtle, but any download with pip3
Pip seems to be working fine

1 Like

Have you tried reinstalling pip?

sudo apt install --reinstall python3-pip

Check if pip shows any packages already installed:

pip3 list

1 Like