I had an older version of Python (3.7), so I used Microsoft Python install manager to upgrade to 3.14.
I updated my environment variable to Python 3.14, and altered my Python interpreter in VS Code
I am trying to pip install streamlit and it seems ok at first:
Successfully built validators
Installing collected packages: watchdog, validators, tzdata, toolz, toml, tenacity, smmap, pyrsistent, pympler, pygments, pyarrow, protobuf, pkgutil-resolve-name, mdurl, MarkupSafe, importlib-resources, cachetools, blinker, backports.zoneinfo, pytz-deprecation-shim, markdown-it-py, jinja2, gitdb, attrs, tzlocal, rich, pydeck, jsonschema, gitpython, altair, streamlit
Attempting uninstall: pygments
Found existing installation: Pygments 2.9.0
Uninstalling Pygments-2.9.0:
Successfully uninstalled Pygments-2.9.0
Successfully installed MarkupSafe-2.1.5 altair-5.0.1 attrs-24.2.0 backports.zoneinfo-0.2.1 blinker-1.6.3 cachetools-5.5.2 gitdb-4.0.12 gitpython-3.1.45 importlib-resources-5.12.0 jinja2-3.1.6 jsonschema-4.17.3 markdown-it-py-2.2.0 mdurl-0.1.2 pkgutil-resolve-name-1.3.10 protobuf-4.24.4 pyarrow-12.0.1 pydeck-0.8.1b1 pygments-2.17.2 pympler-1.1 pyrsistent-0.19.3 pytz-deprecation-shim-0.1.0.post0 rich-13.8.1 smmap-5.0.2 streamlit-1.23.1 tenacity-8.2.3 toml-0.10.2 toolz-0.12.1 tzdata-2025.3 tzlocal-4.3.1 validators-0.20.0 watchdog-3.0.0
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\a\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\pip\_internal\utils\logging.py", line 177, in emit
self.console.print(renderable, overflow="ignore", crop=False, style=style)
File "C:\Users\a\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\pip\_vendor\rich\console.py", line 1698, in print
extend(render(renderable, render_options))
File "C:\Users\a\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\pip\_vendor\rich\console.py
but then there is a "Logging error" and a bunch of references to my old Python version, 3.7.
It does not successfully import, as when I logon to Python 3.14.2 I cannot import my module streamlit.
Is there a way around this?