title: SyntaxError when pip install pip ( def read(rel_path: str))
body: <p>when using pip I get the following warning:</p>
  <pre><code>$ pip install pip
  Requirement already satisfied (use --upgrade to upgrade): pip in /usr/lib/python2.7/site-packages
  You are using pip version 8.1.2, however version 22.1 is available.
  You should consider upgrading via the 'pip install --upgrade pip' command.
  </code></pre>
  <p>So I follow the suggestion, but I get a SyntaxError:</p>
  <pre><code>$ pip install --upgrade pip
  Collecting pip
    Using cached https://files.pythonhosted.org/packages/99/bb/696e256f4f445809f25efd4e4ce42ff99664dc089cafa1e097d5fec7fc33/pip-22.1.tar.gz
      Complete output from command python setup.py egg_info:
      Traceback (most recent call last):
        File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
        File &quot;/tmp/pip-build-k03IN1/pip/setup.py&quot;, line 7
          def read(rel_path: str) -&gt; str:
                           ^
      SyntaxError: invalid syntax
  
      ----------------------------------------
  Command &quot;python setup.py egg_info&quot; failed with error code 1 in /tmp/pip-build-k03IN1/pip/
  You are using pip version 8.1.2, however version 22.1 is available.
  You should consider upgrading via the 'pip install --upgrade pip' command.
  </code></pre>
  <p>My default pip is not the one I want to be:</p>
  <pre><code>$ ~/anaconda3/bin/pip --version
  pip 22.1 from /home/mdi0316/.local/lib/python3.8/site-packages/pip (python 3.8)
  $ ~/anaconda3/bin/pip3 --version
  pip 22.1 from /home/mdi0316/.local/lib/python3.8/site-packages/pip (python 3.8)
  
  $ which pip
  /usr/bin/pip
  $ pip --version
  pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
  
  $ echo $PATH
  /home/mdi0316/bin:/home/mdi0316/anaconda3/envs/nagare_env/bin:/home/mdi0316/anaconda3/condabin:/home/mdi0316/anaconda3/envs/nagare_env/bin:/cm/shared/apps/TURBOMOLE/bin/em64t-unknown-linux-gnu_smp:/cm/shared/apps/TURBOMOLE/scripts:/cm/local/apps/cuda/libs/current/bin:/cm/shared/apps/cuda11.1/sdk/11.1.1/bin/x86_64/linux/release:/cm/shared/apps/cuda11.1/toolkit/11.1.1/bin:/cm/shared/apps/python3.8.7/bin:/cm/shared/apps/openmpi/gcc/64/4.0.5/bin:/cm/local/apps/gcc/8.2.0/bin:/cm/shared/apps/slurm/18.08.9/sbin:/cm/shared/apps/slurm/18.08.9/bin:/cm/local/apps/environment-modules/4.2.1/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/ibutils/bin:/sbin:/usr/sbin:/cm/local/apps/environment-modules/4.2.1/bin
  </code></pre>
  <p>I am within a personally created anaconda environment (nagare_env).
  Yet, the default pip in in ~/usr</p>
  <p>I also tried to install pip through pip3, but I could solve this neither way.</p>
  <pre><code>$ pip3 install --upgrade pip
  Defaulting to user installation because normal site-packages is not writeable
  Requirement already satisfied: pip in ./.local/lib/python3.8/site-packages (22.1)
  
  $ pip3 install --upgrade --trusted-host pypi.org --trusted-host files.pythonhosted.org  pip
  Defaulting to user installation because normal site-packages is not writeable
  Requirement already satisfied: pip in ./.local/lib/python3.8/site-packages (22.1)
  </code></pre>
  <p>any hint?
  Thanks
  Marco</p>