title: Pip is not working for Python 3.10 on Ubuntu
body: <p>I am new to using Ubuntu and Linux in general. I just attempted to update Python by using <code>sudo apt-get install python3.10</code>. When I run <code>python3.10 -m pip install &lt;library name&gt;</code> I always receive the following error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/usr/lib/python3.10/runpy.py&quot;, line 196, in _run_module_as_main
      return _run_code(code, main_globals, None,
    File &quot;/usr/lib/python3.10/runpy.py&quot;, line 86, in _run_code
      exec(code, run_globals)
    File &quot;/usr/lib/python3/dist-packages/pip/__main__.py&quot;, line 19, in &lt;module&gt;
      sys.exit(_main())
    File &quot;/usr/lib/python3/dist-packages/pip/_internal/cli/main.py&quot;, line 73, in main
      command = create_command(cmd_name, isolated=(&quot;--isolated&quot; in cmd_args))
    File &quot;/usr/lib/python3/dist-packages/pip/_internal/commands/__init__.py&quot;, line 96, in create_command
      module = importlib.import_module(module_path)
    File &quot;/usr/lib/python3.10/importlib/__init__.py&quot;, line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1050, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1027, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1006, in _find_and_load_unlocked
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 688, in _load_unlocked
    File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 883, in exec_module
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 241, in _call_with_frames_removed
    File &quot;/usr/lib/python3/dist-packages/pip/_internal/commands/install.py&quot;, line 24, in &lt;module&gt;
      from pip._internal.cli.req_command import RequirementCommand
    File &quot;/usr/lib/python3/dist-packages/pip/_internal/cli/req_command.py&quot;, line 15, in &lt;module&gt;
      from pip._internal.index.package_finder import PackageFinder
    File &quot;/usr/lib/python3/dist-packages/pip/_internal/index/package_finder.py&quot;, line 21, in &lt;module&gt;
      from pip._internal.index.collector import parse_links
    File &quot;/usr/lib/python3/dist-packages/pip/_internal/index/collector.py&quot;, line 12, in &lt;module&gt;
      from pip._vendor import html5lib, requests
  ImportError: cannot import name 'html5lib' from 'pip._vendor' (/usr/lib/python3/dist-packages/pip/_vendor/__init__.py)```
  </code></pre>
  <p>I have tried doing sudo apt-get install python3.10-html5lib it downloaded something but it did not fix the error. How should I fix this error?</p>