# Too old python pip version

**URL:** <https://discuss.bitrise.io/t/too-old-python-pip-version/11504>\
**Category:** Builds\
**Tags:** stack-updates\
**Created:** [January 7, 2020, 1:34am UTC](https://discuss.bitrise.io/t/too-old-python-pip-version/11504 "2020-01-07T01:34:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![YohtaWatanabe](https://avatars.discourse-cdn.com/v4/letter/y/7cd45c/32.png) [@YohtaWatanabe](https://discuss.bitrise.io/u/YohtaWatanabe)\
**Post date:** [January 7, 2020, 1:34am UTC](https://discuss.bitrise.io/t/too-old-python-pip-version/11504/1 "2020-01-07T01:34:49Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

The dependency cannot be resolved because the pip version is old.  
I want to use Python Pillow. However, the installation fails.

## Environment:

linux-docker-android

- BITRISE\_DOCKER\_REV\_NUMBER\_BASE: v2019\_12\_12\_1

## Reproducibility

Always happens when run on [Bitrise.io](http://Bitrise.io).

### Local reproduction

Reproduced in this environment.  
MacOS: 10.15.1  
Python: 2.7.12  
pip: 8.1.1

`$ pip install Pillow`  
Updating pip to the latest version (19.3.1) solved the problem.

## Build log

```auto
Collecting Pillow
  Downloading https://files.pythonhosted.org/packages/39/47/f28067b187dd664d205f75b07dcc6e0e95703e134008a14814827eebcaab/Pillow-7.0.0.tar.gz (38.2MB)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-8ilHBD/Pillow/setup.py", line 304
        yield from self.features
                 ^
    SyntaxError: invalid syntax
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-8ilHBD/Pillow/
You are using pip version 8.1.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

```

---

<div class="post-metadata">

**Author:** ![non-binary](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/non-binary/32/2764_2.png) [@non-binary](https://discuss.bitrise.io/u/non-binary)\
**Post date:** [January 9, 2020, 4:47pm UTC](https://discuss.bitrise.io/t/too-old-python-pip-version/11504/2 "2020-01-09T16:47:12Z")

</div>

Hi there,

Thank you for reaching out.

I was able to reproduce the behaviour and have reached out internally to have this fixed in the general image. In the meantime, please use this workaround:

```auto
    - script@1.1.5:
        title: Upgrade pip
        inputs:
        - content: pip install -U pip
    - script@1.1.5:
        inputs:
        - content: pip install Pillow

```

Please don’t hesitate to follow-up if you have any other questions.

---

<div class="post-metadata">

**Author:** ![YohtaWatanabe](https://avatars.discourse-cdn.com/v4/letter/y/7cd45c/32.png) [@YohtaWatanabe](https://discuss.bitrise.io/u/YohtaWatanabe)\
**Post date:** [January 10, 2020, 1:37am UTC](https://discuss.bitrise.io/t/too-old-python-pip-version/11504/3 "2020-01-10T01:37:01Z")

</div>

This problem was resolved thanks to your support !  
I wait for the image fixed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [February 9, 2020, 1:37am UTC](https://discuss.bitrise.io/t/too-old-python-pip-version/11504/4 "2020-02-09T01:37:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
