@@ -78,3 +78,51 @@ python install-poetry.py --git https://github.com/python-poetry/poetry.git@maste
7878````
7979
8080** Note** : Note that the installer does not support Python < 3.6.
81+
82+
83+ # # Known Issues
84+
85+ # ## Debian/Ubuntu
86+
87+ On Debian and Ubuntu systems, there are various issues that maybe caused due to how
88+ various Python standard library components are packaged and configured. The following
89+ details issues we are presently aware of, and potential workarounds.
90+
91+ > ** Note:** This can also affect WSL users on Windows.
92+
93+ # ### Installation Layout
94+ If you encounter an error similar to the following, this might be due to
95+ [pypa/virtualenv#2350](https://github.com/pypa/virtualenv/issues/2350).
96+
97+ ` ` ` console
98+ FileNotFoundError: [Errno 2] No such file or directory: ' /root/.local/share/pypoetry/venv/bin/python'
99+ ` ` `
100+
101+ You can work around this issue by setting the ` DEB_PYTHON_INSTALL_LAYOUT` environment
102+ variable to ` deb` in order to emulate previously working behaviour.
103+
104+ ` ` ` sh
105+ export DEB_PYTHON_INSTALL_LAYOUT=deb
106+ ` ` `
107+
108+ # ### Missing `distutils` Module
109+
110+ In certain Debian/Ubuntu environments, you might encounter the following error message
111+ in error logs (` poetry-installer-error-* .log` ) provided when the installer fails.
112+
113+ ` ` ` console
114+ ModuleNotFoundError: No module named ' distutils.cmd'
115+ ` ` `
116+
117+ This is probably due to [this bug](https://bugs.launchpad.net/ubuntu/+source/python3.10/+bug/1940705).
118+ See also [pypa/get-pip#124](https://github.com/pypa/get-pip/issues/124).
119+
120+ The known workaround for this issue is to reinstall the ` distutils` package provided by
121+ the distribution.
122+
123+ ` ` ` sh
124+ apt-get install --reinstall python3-distutils
125+ ` ` `
126+
127+ If you have installed a specific python version, eg: ` 3.10` , you might have to use the
128+ package name ` python3.10-distutils` .
0 commit comments