Just tried to install using python 3.6 on centos with the below commands but still the same errors, I think the frappe-bench folder is still unable to call bench using python3.6
[rigpl@www ~]$ python3.6 -m pip install -e bench-repo
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///home/rigpl/bench-repo
Requirement already satisfied: Click==7.0 in ./.local/lib/python3.6/site-packages (from frappe-bench==5.1.0) (7.0)
Requirement already satisfied: GitPython==2.1.15 in ./.local/lib/python3.6/site-packages (from frappe-bench==5.1.0) (2.1.15)
Requirement already satisfied: honcho==1.0.1 in ./.local/lib/python3.6/site-packages (from frappe-bench==5.1.0) (1.0.1)
Requirement already satisfied: Jinja2==2.10.3 in ./.local/lib/python3.6/site-packages (from frappe-bench==5.1.0) (2.10.3)
Requirement already satisfied: python-crontab==2.4.0 in ./.local/lib/python3.6/site-packages (from frappe-bench==5.1.0) (2.4.0)
Requirement already satisfied: requests==2.22.0 in ./.local/lib/python3.6/site-packages (from frappe-bench==5.1.0) (2.22.0)
Requirement already satisfied: semantic-version==2.8.2 in ./.local/lib/python3.6/site-packages (from frappe-bench==5.1.0) (2.8.2)
Requirement already satisfied: setuptools==40.8.0 in ./.local/lib/python3.6/site-packages (from frappe-bench==5.1.0) (40.8.0)
Requirement already satisfied: six==1.12.0 in ./.local/lib/python3.6/site-packages (from frappe-bench==5.1.0) (1.12.0)
Requirement already satisfied: virtualenv==16.6.0 in ./.local/lib/python3.6/site-packages (from frappe-bench==5.1.0) (16.6.0)
Requirement already satisfied: gitdb2<3,>=2 in ./.local/lib/python3.6/site-packages (from GitPython==2.1.15->frappe-bench==5.1.0) (2.0.6)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib64/python3.6/site-packages (from Jinja2==2.10.3->frappe-bench==5.1.0) (1.1.1)
Requirement already satisfied: python-dateutil in ./.local/lib/python3.6/site-packages (from python-crontab==2.4.0->frappe-bench==5.1.0) (2.8.1)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./.local/lib/python3.6/site-packages (from requests==2.22.0->frappe-bench==5.1.0) (3.0.4)
Requirement already satisfied: idna<2.9,>=2.5 in ./.local/lib/python3.6/site-packages (from requests==2.22.0->frappe-bench==5.1.0) (2.8)
Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python3.6/site-packages (from requests==2.22.0->frappe-bench==5.1.0) (2019.11.28)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./.local/lib/python3.6/site-packages (from requests==2.22.0->frappe-bench==5.1.0) (1.25.8)
Requirement already satisfied: smmap2>=2.0.0 in ./.local/lib/python3.6/site-packages (from gitdb2<3,>=2->GitPython==2.1.15->frappe-bench==5.1.0) (2.0.5)
Installing collected packages: frappe-bench
Running setup.py develop for frappe-bench
Successfully installed frappe-bench
[rigpl@www ~]$ sudo python3.6 -m pip install -e bench-repo
Obtaining file:///home/rigpl/bench-repo
Collecting Click==7.0
Using cached Click-7.0-py2.py3-none-any.whl (81 kB)
Collecting GitPython==2.1.15
Downloading GitPython-2.1.15-py2.py3-none-any.whl (452 kB)
|████████████████████████████████| 452 kB 8.5 MB/s
Collecting honcho==1.0.1
Using cached honcho-1.0.1-py2.py3-none-any.whl (21 kB)
Collecting Jinja2==2.10.3
Using cached Jinja2-2.10.3-py2.py3-none-any.whl (125 kB)
Collecting python-crontab==2.4.0
Using cached python-crontab-2.4.0.tar.gz (50 kB)
Collecting requests==2.22.0
Using cached requests-2.22.0-py2.py3-none-any.whl (57 kB)
Collecting semantic-version==2.8.2
Using cached semantic_version-2.8.2-py2.py3-none-any.whl (15 kB)
Collecting setuptools==40.8.0
Using cached setuptools-40.8.0-py2.py3-none-any.whl (575 kB)
Collecting six==1.12.0
Using cached six-1.12.0-py2.py3-none-any.whl (10 kB)
Collecting virtualenv==16.6.0
Using cached virtualenv-16.6.0-py2.py3-none-any.whl (2.0 MB)
Collecting gitdb2<3,>=2
Using cached gitdb2-2.0.6-py2.py3-none-any.whl (63 kB)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib64/python3.6/site-packages (from Jinja2==2.10.3->frappe-bench==5.1.0) (1.1.1)
Collecting python-dateutil
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests==2.22.0->frappe-bench==5.1.0) (1.25.9)
Collecting idna<2.9,>=2.5
Using cached idna-2.8-py2.py3-none-any.whl (58 kB)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests==2.22.0->frappe-bench==5.1.0) (2020.4.5.1)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/site-packages (from requests==2.22.0->frappe-bench==5.1.0) (3.0.4)
Collecting smmap2>=2.0.0
Downloading smmap2-3.0.1-py3-none-any.whl (1.1 kB)
Collecting smmap>=3.0.1
Downloading smmap-3.0.4-py2.py3-none-any.whl (25 kB)
Using legacy setup.py install for python-crontab, since package 'wheel' is not installed.
Installing collected packages: Click, smmap, smmap2, gitdb2, GitPython, honcho, Jinja2, six, python-dateutil, python-crontab, idna, requests, semantic-version, setuptools, virtualenv, frappe-bench
WARNING: The script honcho is installed in '/usr/local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Attempting uninstall: Jinja2
Found existing installation: Jinja2 2.11.1
Uninstalling Jinja2-2.11.1:
Successfully uninstalled Jinja2-2.11.1
Attempting uninstall: six
Found existing installation: six 1.14.0
Uninstalling six-1.14.0:
Successfully uninstalled six-1.14.0
Running setup.py install for python-crontab ... done
Attempting uninstall: idna
Found existing installation: idna 2.9
Uninstalling idna-2.9:
Successfully uninstalled idna-2.9
Attempting uninstall: requests
Found existing installation: requests 2.23.0
Uninstalling requests-2.23.0:
Successfully uninstalled requests-2.23.0
Attempting uninstall: setuptools
Found existing installation: setuptools 45.2.0
Uninstalling setuptools-45.2.0:
Successfully uninstalled setuptools-45.2.0
WARNING: The scripts easy_install and easy_install-3.6 are installed in '/usr/local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script virtualenv is installed in '/usr/local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Running setup.py develop for frappe-bench
Successfully installed Click-7.0 GitPython-2.1.15 Jinja2-2.10.3 frappe-bench gitdb2-2.0.6 honcho-1.0.1 idna-2.8 python-crontab-2.4.0 python-dateutil-2.8.1 requests-2.22.0 semantic-version-2.8.2 setuptools-40.8.0 six-1.12.0 smmap-3.0.4 smmap2-3.0.1 virtualenv-16.6.0
[rigpl@www ~]$
[rigpl@www ~]$ cd frappe-bench/
[rigpl@www frappe-bench]$ bench --help
Traceback (most recent call last):
File "/usr/bin/bench", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3191, in <module>
@_call_aside
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3175, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'requests==2.22.0' distribution was not found and is required by bench