[ https://issues.apache.org/jira/browse/BEAM-9994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17112053#comment-17112053 ]
Kamil Wasilewski commented on BEAM-9994: ---------------------------------------- I investigated the issue, we were missing two system packages: python3.8-distutils and python3.8-dev. The issue has been solved after manual installation. Example test: https://builds.apache.org/job/beam_PreCommit_PythonFormatter_Phrase/27/console > Cannot create a virtualenv using Python 3.8 on Jenkins machines > --------------------------------------------------------------- > > Key: BEAM-9994 > URL: https://issues.apache.org/jira/browse/BEAM-9994 > Project: Beam > Issue Type: Bug > Components: build-system > Reporter: Kamil Wasilewski > Priority: P0 > > Command: *virtualenv --python /usr/bin/python3.8 env* > Output: > {noformat} > Running virtualenv with interpreter /usr/bin/python3.8 > Traceback (most recent call last): > File "/usr/local/lib/python3.5/dist-packages/virtualenv.py", line 22, in > <module> > import distutils.spawn > ModuleNotFoundError: No module named 'distutils.spawn' > {noformat} > Example test affected: > https://builds.apache.org/job/beam_PreCommit_PythonFormatter_Commit/1723/console -- This message was sent by Atlassian Jira (v8.3.4#803005)