If the path where the code is fetched in Jenkins is too long, the pip command of the virtual environment fails, causing the build to fail. This is a well known issue. See:
The issues are relatively old and it doesn't seem like there is a solution for it. But there is a working around, which is to call the pip module like:
If the path where the code is fetched in Jenkins is too long, the
pip
command of the virtual environment fails, causing the build to fail. This is a well known issue. See:The issues are relatively old and it doesn't seem like there is a solution for it. But there is a working around, which is to call the pip module like: