(Oct-28-2024, 10:05 PM)tester_V Wrote: I'd like to install a new module for the "C:\Python308\python.exe", I understand PIP would not work for the local installation. How could I install/upgrade a module?As mention use
py
.Here i install Requests to Python 3.8.
G:\div_code 位 py -3.8 -m pip install requests Collecting requests ..... Successfully installed certifi-2024.8.30 charset-normalizer-3.4.0 idna-3.10 requests-2.32.3 urllib3-2.2.3As mention uv is good.
Here it download and install a full python 3.13 version,and i activate environment.
G:\div_code\py_313 位 uv venv --python 3.13.0 Using CPython 3.13.0 Creating virtual environment at: .venv Activate with: .venv\Scripts\activate G:\div_code\py_313 位 .venv\Scripts\activate G:\div_code\py_313 (py_313) 位 python --version Python 3.13.0Eg install Request to it,it's fast馃殌
G:\div_code\py_313 (py_313) 位 uv pip install requests Resolved 5 packages in 440ms Prepared 5 packages in 394ms 鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒 [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 449ms + certifi==2024.8.30 + charset-normalizer==3.4.0 + idna==3.10 + requests==2.32.3 + urllib3==2.2.3 G:\div_code\py_313 (py_313) 位 python Python 3.13.0 (main, Oct 16 2024, 00:33:24) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import requests >>> exit G:\div_code\py_313 (py_313) 位