Forums

Let's Encrypt - Python 2.7

I am following the steps on the guide: https://help.pythonanywhere.com/pages/LetsEncrypt/.

As I am using Python 2.7, I replaced the instruction: "pip3.6 install --user --upgrade pythonanywhere" by "pip2.7 install --user --upgrade pythonanywhere" but I got an error:

    11:05 ~ $ pip2.7 install --user --upgrade pythonanywhere
Looking in links: /usr/share/pip-wheels
Collecting pythonanywhere
  Downloading https://files.pythonhosted.org/packages/91/72/ea7eb1d3dc072034a90e766eadd7fe98406c8ca0664b3eeef820b7d080fb/pythonanywhere-0.0.11.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-mpJGnP/pythonanywhere/setup.py", line 1, in <module>
        from pathlib import Path
    ImportError: No module named pathlib

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-mpJGnP/pythonanywhere/
11:06 ~ $

Can someone help me?

The Python version that you use for your website is independent to the version you install the pythonanywhere module for; you should use pip3.7 regardless.

BTW I see you have a free account -- there's no need to generate a Let's Encrypt certificate for your website at inespalmasantos.pythonanywhere.com -- it's already got one. Check this link to see.

Thanks so much for your quick reply Giles!

No problem!