Python Forum
Install a module to a specific to Python Installation (one of many))
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install a module to a specific to Python Installation (one of many))
#3
(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.3
As 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.0
Eg 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) 位
tester_V likes this post
Reply


Messages In This Thread
RE: Install a module to a specific to Python Installation (one of many)) - by snippsat - Oct-29-2024, 03:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  White Screen Issue with Toolbar After Python Installation evelynfreya 3 1,461 Apr-30-2025, 06:43 AM
Last Post: encore
  Shrink Python installation? Extract site-packages from .zip only on demand? pstein 4 2,003 Oct-28-2024, 04:29 PM
Last Post: snippsat
  SOLVED: Install mailer module in Python 3.11.2? Calab 3 2,552 Jul-03-2024, 02:03 PM
Last Post: Calab
  Troubleshooting Jupyter Notebook installation with Python using pip and a venv Drone4four 1 2,819 Jun-04-2024, 10:55 PM
Last Post: Drone4four
  Installation module 'pyproj' QuentinR 1 3,167 Feb-28-2024, 10:00 AM
Last Post: snippsat
  Python installation for old MacOS Yonix 1 1,176 Sep-21-2023, 03:32 PM
Last Post: menator01
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 5,292 Jul-15-2023, 11:32 AM
Last Post: snippsat
  How to see the date of installation of python modules. newbieAuggie2019 4 5,122 Mar-31-2023, 12:40 PM
Last Post: newbieAuggie2019
  Getting "SSL client not supported by this Python installation" error prabirsarkar 0 1,721 Mar-13-2023, 05:01 PM
Last Post: prabirsarkar
  python installation/running inside singularity container erdemath 2 3,473 Sep-21-2022, 08:13 AM
Last Post: erdemath

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020