title: How to change MarkUpSafe version in virtual environment?
body: <p>I am trying to make an application using python and gRPC as shown in this article - <a href="https://realpython.com/python-microservices-grpc/" rel="noreferrer">link</a></p>
  <p>I am able to run the app successfully on my terminal but to run with a frontend I need to run it as a flask app, <a href="https://github.com/realpython/materials/tree/master/python-microservices-with-grpc" rel="noreferrer">codebase</a>. And I am doing all this in a virtual environment.</p>
  <p>when I run my flask command <code>FLASK_APP=marketplace.py flask run</code></p>
  <p>This is the error I get</p>
  <pre><code>ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/Users/alex/Desktop/coding/virt/lib/python3.8/site-packages/markupsafe/__init__.py)
  </code></pre>
  <p>On researching about this error I found this <a href="https://github.com/aws/aws-sam-cli/issues/3661" rel="noreferrer">link</a> - it basically tells us that currently I am using a higher version of MarkUpSafe library than required.</p>
  <p>So I did <code>pip freeze --local </code> inside the virtualenv and got MarkUpSafe version to be <code>MarkupSafe==2.1.0</code></p>
  <p>I think if I change the version of this library from 2.1.0 to 2.0.1 then the flask app might run.</p>
  <p>How can I change this library's version from the terminal?</p>
  <p>PS: If you think changing the version of the library won't help in running the flask app, please let me know what else can I try in this.</p>