# Error when installing PIP

**URL:** <https://talk.openmrs.org/t/error-when-installing-pip/38641>\
**Category:** Bahmni\
**Created:** [February 20, 2023, 1:17pm UTC](https://talk.openmrs.org/t/error-when-installing-pip/38641 "2023-02-20T13:17:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tapologo](https://talk.openmrs.org/letter_avatar/tapologo/32/6_22734026db12803ebb3e059622ac3534.png) [@tapologo](https://talk.openmrs.org/u/tapologo)\
**Post date:** [February 20, 2023, 1:17pm UTC](https://talk.openmrs.org/t/error-when-installing-pip/38641/1 "2023-02-20T13:17:27Z")

</div>

I am installing bahmni on a fresh Centos 7.6 installation following [this documentation](https://bahmni.atlassian.net/wiki/spaces/BAH/pages/33128505/Install+Bahmni+on+CentOS) but I am already running into errors.

When I run `pip ` `install` `--upgrade pip` I get below message

`sudo: pip: command not found`

I then used the command `sudo yum install python-pip` after which running `pip ` `install` `--upgrade pip` gave below error message

```auto
Collecting pip
  Downloading https://files.pythonhosted.org/packages/6b/8b/0b16094553ecc680e43ded8f920c3873b01b1da79a54274c98f08cb29fca/pip-23.0.1.tar.gz (2.1MB)
    100% |████████████████████████████████| 2.1MB 609kB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-eA_d2s/pip/setup.py", line 7
        def read(rel_path: str) -> str:
                         ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-eA_d2s/pip/
You are using pip version 8.1.2, however version 23.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

```

---

<div class="post-metadata">

**Author:** ![eddyprasetyo](https://talk.openmrs.org/user_avatar/talk.openmrs.org/eddyprasetyo/32/10550_2.png) [@eddyprasetyo](https://talk.openmrs.org/u/eddyprasetyo)\
**Post date:** [February 26, 2023, 8:34am UTC](https://talk.openmrs.org/t/error-when-installing-pip/38641/2 "2023-02-26T08:34:25Z")

</div>

This is pip and python related issue, not specific to odoo. I think the version difference are too faraway for straightforward upgrade. maybe you can try fresh install latest pip from your distribution package manager, in this case yum in Centos.
