Hi,
My question is simple, so obviously, I'm missing something fundamental. I wrote a short pipeline to test my python code. The first step is installing all the needed packages using pip. I found out that although pip shows a success message while installing a package, the package doesn't really install and the pipeline failed at the show line (line 2). I used "mock" package for this example but it happens for each package I use.
Output:
<span>for line 1:</span>
<span>+ pip install mock</span>
<span>Collecting mock</span><span> Downloading <a href="https://files.pythonhosted.org/packages/cd/74/d72daf8dff5b6566db857cfd088907bb0355f5dd2914c4b3ef065c790735/mock-4.0.2-py3-none-any.whl" target="_blank" rel="noopener nofollow noreferrer">https://files.pythonhosted.org/packages/cd/74/d72daf8dff5b6566db857cfd088907bb0355f5dd2914c4b3ef065c790735/mock-4.0.2-py3-none-any.whl</a></span>
<span>Installing collected packages: mock</span>
<span>Successfully installed mock-4.0.2</span>
<span>You are using pip version 19.0.3, however version 20.3b1 is available.</span><span>You should consider upgrading via the 'pip install --upgrade pip' command.</span>
<span>for line 2:</span>
<span>+ pip show mock</span>
<span>WARNING: Package(s) not found: mock</span>
My pipeline file:
image: python:3.7.2
pipelines:
default:
- step:
script:
- pip install mock # Line 1
- pip show mock # Line 2
- pip list