# Trellis fails when installing PIP?

**URL:** https://discourse.roots.io/t/trellis-fails-when-installing-pip/21197
**Category:** trellis
**Created:** 2021-07-28T17:37:01Z
**Posts:** 4

## Post 1 by @joshb — 2021-07-28T17:37:01Z

I’ve recently formatted an older MacBook Pro which is now running Big Sur 11.5.1.  
My iMac is running all of my tools and projects fine on Big Sur 11.1

Attempting to get an old project up and running on the laptop, I receive the following error:

```
==> default: Running provisioner: ansible_local...
    default: Installing Ansible...
    default: Installing pip... (for Ansible installation)
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

curl https://bootstrap.pypa.io/get-pip.py | sudo python

Stdout from the command:

ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.6. Please use https://bootstrap.pypa.io/pip/2.7/get-pip.py instead.

Stderr from the command:

  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 1892k 100 1892k 0 0 7008k 0 --:--:-- --:--:-- --:--:-- 7035k
```

I am running:  
`Vagrant 2.2.1`

I’ve come across another similar but closed topic here. I don’t understand the fix mentioned.

> [@Ansible installation is failing](https://discourse.roots.io/t/ansible-installation-is-failing/20407):
>
> Hi All, I’m trying to set up a trellis project on my local Windows machine by following this documentation [https://roots.io/docs/getting-started/windows/#working-with-trellis](https://roots.io/docs/getting-started/windows/#working-with-trellis). As per the installation document, able to install Virtual box and Vagrant but Ansible installation is failing. When I’m trying to run the command vagrant up or vagrant reload --provision, it’s throwing the below Python supported version error. I have already check in my system and there is no python version 2.7 present on…

I installed Python 3.6 and then I received a different error so I reverted back based on that error and what I found on the roots forum.

Anyone have any ideas? TY

---

## Post 2 by @joshb — 2021-07-28T18:49:20Z

Perhaps it is failing at installing PIP?

I found this:

> <https://github.com/roots/trellis/pull/1269>

I updated that line in my vagrantfile, ran `vagrant box update` and then attempted to `vagrant up` again but still receive the same error above.

---

## Post 3 by @joshb — 2021-07-28T18:55:10Z

Lastly, I updated the vagrantfile with the suggestion in the error output:

ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.6. Please use [https://bootstrap.pypa.io/pip/2.7/get-pip.py](https://bootstrap.pypa.io/pip/2.7/get-pip.py) instead.

`ansible.pip_install_cmd = 'curl https://bootstrap.pypa.io/get-pip.py | sudo python'`  
to  
`ansible.pip_install_cmd = 'curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | sudo python'`

No luck here as well. Produces same error.

---

## Post 4 by @joshb — 2021-07-28T21:19:04Z

I thought maybe something was corrupt on my fresh install of Big Sur so I formatted and reinstalled it. Then continued to get all the packages installed again.

Attempting to run this command:

```
sudo apt-get install python-pip
```

Returns:

```
sudo: apt-get: command not found
```

Attempting to run this command:

```
sudo easy_install pip
```

Returns:

```
SyntaxError: invalid syntax
```

Running:

```
locate apt-get
```

Returns:

```
WARNING: The locate database (/var/db/locate.database) does not exist.
To create the database, run the following command:

  sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

Please be aware that the database can take some time to generate; once
the database has been created, this message will no longer appear.
```

---

## Post 5 by @system — 2021-09-08T17:37:05Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
