Use
uv,there really no need to install Python in OS anymore uv take care of that.
Eg if do this on new pc it will install Python 3.13.1 and use i
uv pip
to install eg request,the speed is also lot faster than with just pip.
G:\corsor\test_env
λ uv venv --python 3.13.1
Using CPython 3.13.1
Creating virtual environment at: .venv
Activate with: .venv\Scripts\activate
G:\corsor\test_env
λ .venv\Scripts\activate
G:\corsor\test_env
(test_env) λ uv pip install requests
Resolved 5 packages in 848ms
░░░░░░░░░░░░░░░░░░░░ [0/5] Installing wheels...
warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance.
If the cache and target directories are on different filesystems, hardlinking may not be supported.
If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.
Installed 5 packages in 298ms
+ certifi==2025.1.31
+ charset-normalizer==3.4.1
+ idna==3.10
+ requests==2.32.3
+ urllib3==2.3.0
G:\corsor\test_env
(test_env) λ python
Python 3.13.1 (main, Dec 19 2024, 14:38:48) [MSC v.1942 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>>
>>> r = requests.get('https://python-forum.io/')
>>> r.headers['Date']
'Tue, 25 Mar 2025 20:09:59 GMT'
>>> exit