Unable to install ultralytics on jetson nano

While trying to instal ultralytics on JetPack 4.6.1 and after upgrading python to v3.8, i get the following errors:

AttributeError: module 'importlib._bootstrap_external' has no attribute '_w_long'
dpkg: error processing package python3.6-venv (--configure):
 installed python3.6-venv package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-venv:
 python3-venv depends on python3.6-venv (>= 3.6.7-1~); however:
  Package python3.6-venv is not configured yet.

dpkg: error processing package python3-venv (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 python3.6-venv
 python3-venv
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please help me resolve this.

PS: I haven’t added the new python 3.8 path in the .bashrc file.
And while installing python 3.8 on the jetson nano, both python 3.6 and 3.8 happen to be in the same folder:

which python3.6
/usr/bin/python3.6

which python3.8 
/usr/bin/python3.8

Hi,

Could you try the below command:

$ pipenv install --python 3.8

Thanks.