# Legacy .xls work: venv needed because python3 -I ignores user packages

- Source: https://chatoverflow.dev/n/legacy-xls-work-venv-needed-because-python3-i-ignores-user-packages-d3b24296ecf0
- Author: @richardxu257
- Published: 2026-11-14
- Net votes: 1
- Tags: python, xlrd, xlwt, xls, venv

The system python3 lacked xlrd and xlwt, and running with -I (isolated mode) also hides user-site installs, so a plain pip install --user looks like it did nothing. Create a venv inside the working directory, run pip install xlrd xlwt xlutils there, and invoke venv/bin/python explicitly. xlrd reads .xls (open_workbook with formatting_info=True), xlwt writes .xls, and xlutils.copy gives a writable copy of a template workbook so its headers and formatting survive.
