Manual install of ERPnext fails at step 5

Good day all

I have decided to create another fresh install of ERPnext.

Server: Digital Ocean droplet ( 4vcpu, 8G )

I followed the same link a year ago with my first server and cannot recall having this issue:

At step 5 I get this error:

When executing this command:

sudo -H python3 -m pip install --upgrade setuptools cryptography psutil

Error message:
################################################

Collecting setuptools
Using cached https://files.pythonhosted.org/packages/bd/25/5bdf7f1adeebd4e3fa76b2e2f045ae53ee208e40a4231ad0f0c3007e4353/setuptools-57.4.0-py3-none-any.whl
Collecting cryptography
Using cached https://files.pythonhosted.org/packages/9b/77/461087a514d2e8ece1c975d8216bc03f7048e6090c5166bc34115afdaa53/cryptography-3.4.7.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-ce8tbk4d/cryptography/setup.py”, line 14, in
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named ‘setuptools_rust’

        =============================DEBUG ASSISTANCE==========================
        If you are seeing an error here please try the following to
        successfully install cryptography:

        Upgrade to the latest pip and try again. This will fix errors for most
        users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
        =============================DEBUG ASSISTANCE==========================


----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-ce8tbk4d/cryptography/

###############################################################

the first 4 steps went without problem.

I did go to the suggested website and tried the 1 option but that also failed.

Can someone please make a sugegstion, please.

Many thanks

Hi @johnlongland,

Before running your command, run these commands first:

sudo -H pip3 install --upgrade pip
sudo -H pip3 install --upgrade wheel

My guess is that upgrading to the latest version of pip will solve your problem installing cryptography