# Could not find a version that satisfies the requirement letsencrypt

**URL:** <https://community.letsencrypt.org/t/could-not-find-a-version-that-satisfies-the-requirement-letsencrypt/6499>\
**Category:** Help\
**Created:** [December 9, 2015, 7:55pm UTC](https://community.letsencrypt.org/t/could-not-find-a-version-that-satisfies-the-requirement-letsencrypt/6499 "2015-12-09T19:55:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gustavoo](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gustavoo](https://community.letsencrypt.org/u/gustavoo)\
**Post date:** [December 9, 2015, 7:55pm UTC](https://community.letsencrypt.org/t/could-not-find-a-version-that-satisfies-the-requirement-letsencrypt/6499/1 "2015-12-09T19:55:23Z")

</div>

System: CentOS 6.7  
Server: nginx/1.8.0  
System has EPEL enabled

I get this error message when I run letsencrypt-auto:  
**Could not find a version that satisfies the requirement letsencrypt (from versions: )**  
**No matching distribution found for letsencrypt**

I have attached an image with the output from the command above. Your help will be appreciated:

 ![](https://global.discourse-cdn.com/letsencrypt/original/2X/3/303d3f73ed1b0d5285df4d8f886cfb0b0db8552f.png)

---

<div class="post-metadata">

**Author:** ![Licaon\_Kter](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/licaon_kter/32/2905_2.png) [@Licaon\_Kter](https://community.letsencrypt.org/u/Licaon_Kter)\
**Post date:** [December 9, 2015, 10:13pm UTC](https://community.letsencrypt.org/t/could-not-find-a-version-that-satisfies-the-requirement-letsencrypt/6499/2 "2015-12-09T22:13:02Z")

</div>

So do you have Python2.7 already? You can use this guide to get 2.7.9 (adjust your commands): [https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4](https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4) Also setuptools can be setup like this: [https://pypi.python.org/pypi/setuptools/18.7.1#unix-wget](https://pypi.python.org/pypi/setuptools/18.7.1#unix-wget)

First delete **/root/.local/share/letsencrypt** and then re-run.

---

<div class="post-metadata">

**Author:** ![gustavoo](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gustavoo](https://community.letsencrypt.org/u/gustavoo)\
**Post date:** [December 10, 2015, 10:05am UTC](https://community.letsencrypt.org/t/could-not-find-a-version-that-satisfies-the-requirement-letsencrypt/6499/3 "2015-12-10T10:05:28Z")

</div>

The system has Python 2.6 as default but there is also Python 2.7 installed (I can run either python or python2.7).

> > python2.7  
> > Python 2.7.10 (default, May 28 2015, 09:58:55)  
> > [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2

---

<div class="post-metadata">

**Author:** ![gustavoo](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gustavoo](https://community.letsencrypt.org/u/gustavoo)\
**Post date:** [December 11, 2015, 10:19pm UTC](https://community.letsencrypt.org/t/could-not-find-a-version-that-satisfies-the-requirement-letsencrypt/6499/4 "2015-12-11T22:19:24Z")

</div>

I solved the problem:  
I edited letsencrypt-auto and added ‘–verbose’ in the pip commands. (almost at the bottom)  
Then I run letsencrypt-auto --help all . From the output I noticed that it could not access some domain (for pip) using https.

My next thought was, this could be an ssl ca cert problem (In the morning I had tried to get a file from a different domain using wget, and I couldn’t, so I connected the dots here) . I replaced the existing ca bundle certificate with a newer one, with the command below, and that solved the problem:  
curl [http://curl.haxx.se/ca/cacert.pem](http://curl.haxx.se/ca/cacert.pem) -o /etc/pki/tls/certs/ca-bundle.crt
