Pip opening file with cp1252 encoding raises exception when temp folder path contains non-latin char #9573
Closed
1 task done
Labels
resolution: duplicate
Duplicate of an existing issue/PR
type: bug
A confirmed bug or unintended behavior
pip version
21.0.1
Python version
3.9
OS
Windows 10
Additional information
My home folder contains
ł
character (polish language)Description
When doing
pip install .
exception is being raised (see output field).During installation, the file
sitecustomize.py
is opened to writing in default system encoding code. On Windows it is being opened withcp-1252
.The content that is being written to a file is:
WORKAROUNDS
Change mentioned above line to:
Set
PYTHONUTF8=1
env var.Expected behavior
File is being opened with
utf-8
encoding, no error raised.How to Reproduce
The easiest way to reproduce the issue I found was with using poetry.
poetry new some_name
cd some_name
pip install .
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: