I have a problem I have python 3.5 installed I have a problem when I do bench migrate :
halloula@guesmi-X555LD:~/frappe-bench$ bench migrate
WARN: bench is installed in editable mode!
This is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`
Migrating contrat.partenaire
Updating DocTypes for frappe : [========================================]
Generating Website Theme Files...
Compiling Python Files...
*** Error compiling '../apps/frappe/frappe/utils/commands.py'...
File "../apps/frappe/frappe/utils/commands.py", line 11
req = requests.get(f"https://api.github.com/users/{org}/repos", {"type": "sources", "per_page": 200})
^
SyntaxError: invalid syntax
I try to change version python from SyntaxError: invalid syntax during updating
so I change to python 3.6
sudo update-alternatives --config python3 .
but now when I do any command bench :start,update,migrate …it return :
halloula@guesmi-X555LD:~/frappe-bench$ bench update --requirements
Traceback (most recent call last):
File "/home/halloula/.local/bin/bench", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2927, in <module>
@_call_aside
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2913, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 635, in _build_master
ws.require(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 943, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 829, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'frappe-bench' distribution was not found and is required by the application
I don’t know what is the problem please help