Search code examples
pippypiaws-code-deploy

Problems installing mailchimp3 with pip


When I put mailchilmp3==1.0.26 in my requirements.txt and run pip install -r requirements.txt it works locally, but when deploying to our AWS instances (via circleCI and codedeploy) I get the following error:

Downloading/unpacking mailchimp3==1.0.26 (from -r requirements.txt (line 17))
  Could not find any downloads that satisfy the requirement mailchimp3==1.0.26 (from -r requirements.txt (line 17))
Cleaning up...
No distributions at all found for mailchimp3==1.0.26 (from -r requirements.txt (line 17))

Yet if I run a pip search mailchimp3 from that server I see that pip finds the correct package:

mailchimp3 (1.0.26)  - A python client for v3 of MailChimp API

Also, if I ssh onto that server and run the sudo pip install -r requirements.txt manually (or sudo pip install mailchimp3) it works successfully.

Any ideas what might be causing this?


Solution

  • So this turned out to be an issue with CircleCI and was not related to our actual servers. The CircleCI instance had an outdated version of pip installed which is why it could not find the correct mailchimp version.

    Adding a:

    dependencies:
        pre:
            pip install --upgrade pip
    

    to our circle.yml fixed it.