# GitLab CI virtualenv creation problem

**URL:** <https://discuss.python.org/t/gitlab-ci-virtualenv-creation-problem/30288>\
**Category:** Python Help\
**Tags:** help\
**Created:** [July 26, 2023, 8:29am UTC](https://discuss.python.org/t/gitlab-ci-virtualenv-creation-problem/30288 "2023-07-26T08:29:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![swkang](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/swkang/32/13686_2.png) [@swkang](https://discuss.python.org/u/swkang)\
**Post date:** [July 26, 2023, 8:29am UTC](https://discuss.python.org/t/gitlab-ci-virtualenv-creation-problem/30288/1 "2023-07-26T08:29:02Z")

</div>

When deploying using GitLab CI, if I proceed with virtualenv venv in the before\_script of gitlab-ci.yml, the job fails with the following error.

`FileNotFoundError: [Errno 2] No such file or directory: '/builds/<proj_name>/server/venv/lib/python3.9/site-packages/pip/./ __init__.py'`

The docker image uses python:3.9, and the virtualenv installation proceeds with the following script.

`pip install virtualenv`

If I install virtualenv version 20.0.1, I don’t get that error.

My guess is that the problem is caused by an incorrect reference to pip/./ in this part of python3.9/site-packages/pip/./ **init**.py.

What could be the cause?
