Downloading and Installing Python Packages for Windows XP

Downloading Packages for Windows XP (from another computer)

Since Windows XP has outdated SSL certificates and many package repositories no longer support it, you'll need to download packages from a modern computer:

1
2
3
4
5
6
7
pip download\
--abi none\
--only-binary=:all:\
--platform win32\
--python-version 34\
--dest <directory>\
<package_name>

Replace:

  • <directory> with your download location
  • <package_name> with the package you want (e.g., numpy)

Installing Packages on Windows XP

  1. Copy the downloaded package files to your Windows XP machine
  2. Open Command Prompt (cmd.exe)
  3. Run the installation command:
1
C:\Python34\python.exe -m pip install --no-index --find-links=<directory> <package_name>

Replace:

  • <directory> with your package location
  • <package_name> with the package you want to install

Notes

  1. Python 3.4 is the last version with some Windows XP support
  2. Not all modern packages will work with Python 3.4

Downloading and Installing Python Packages for Windows XP
https://jifengwu2k.github.io/2021/05/20/Downloading-and-Installing-Python-Packages-for-Windows-XP/
Author
Jifeng Wu
Posted on
May 20, 2021
Licensed under