Error installing ERPNext using python 3.9

Hello, I want to install ERPNext in Centos 7 and Python 3.9.

I have downloaded and when I run: sudo /usr/local/bin/python3.9 --production --user frappe-user, this error occurs:

Traceback (most recent call last):
  File "/home/frappie/", line 433, in <module>
  File "/home/frappie/", line 78, in check_distribution_compatibility
    dist_name, dist_version = get_distribution_info()
  File "/home/frappie/", line 100, in get_distribution_info
    current_dist = platform.dist()
AttributeError: module 'platform' has no attribute 'dist'

If I run the script using Python 2.7.5, a message telling that it is recommended to run the script using Python 3, so I am stuck here.

What can I do it?


No guarantees, but you could try this…

cd $HOME/frappe-bench;
./env/bin/pip3 install numpy==1.18.5;
./env/bin/pip3 install pandas==0.24.2;

I have read that dist() method was removed in Python 3.8, so I am using Python 3.6 now. Thanks anyway.