I have external package and i want to install it by code inside my app, the code looks like :
try:
from pip import main as pipmain
except:
from pip._internal import main as pipmain
pipmain(['install', module])
# NOTE : module is string package's name
but there is an error like : TypeError: 'module' object is not callable