Try ERPNext Buy Support Partners Foundation

Error installing ERPNext using python 3.9

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

I have downloaded
https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py and when I run: sudo /usr/local/bin/python3.9 install.py --production --user frappe-user, this error occurs:

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

If I run the install.py 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?

Thanks
Jaime

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.

1 Like