So recently I have been trying to do some web development with django framework. Initially, I had python 2.7 installed on my lenovo laptop… and whenever I ran the python command it would reference to that folder, /usr/lib/python2.7, but… when I tried to get django working It wasnt compatible with python 2.7… so I deleted 2.7 and installed 3.5. I then tried the python command, but the following error was given…
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
ImportError: No module named site
I then restarted my laptop.
When it restarted, the bottom tab bar had an ever increasing number of tabs poping up with the tag ‘starting cache’ written on it. The number of tabs keep on increasing until I shut down my laptop. Also, all of my icons on my home screen have dissapeared and initially when the laptop is booting up the homepage is black… it doesnt show the background screen.
Whether my downloading of python 3.5 and removal of 2.7 caused this, I am not sure. I have had cases in the past when booting up my laptop that the icons on the home-screen did not load up.
I have tried to get rid of python 3.7 on my laptop with ‘sudo apt-get remove python3.7’
but a longer version of this repetitive error is given…
error - {
dpkg: error processing package python3-requests (–configure):
** dependency problems - leaving unconfigured**
No apport report written because MaxReports is reached already
** dpkg: dependency problems prevent configuration of python3-smbc:**
** python3-smbc depends on python3 (<< 3.6); however:**
** Package python3 is not configured yet.**
** python3-smbc depends on python3 (>= 3.4~); however:**
** Package python3 is not configured yet.**
dpkg: error processing package python3-smbc (–configure):
** dependency problems - leaving unconfigured**
No apport report written because MaxReports is reached already
** dpkg: dependency problems prevent configuration of python3-sqlparse:**
** python3-sqlparse depends on python3:any (>= 3.3.2-2~); however:**
** Package python3 is not configured yet.**
dpkg: error processing package python3-sqlparse (–configure):
** dependency problems - leaving unconfigured**
No apport report written because MaxReports is reached already
** dpkg: dependency problems prevent configuration of python3-tz:**
** python3-tz depends on python3:any (>= 3.3.2-2~); however:**
** Package python3 is not configured yet.**
dpkg: error processing package python3-tz (–configure):
** dependency problems - leaving unconfigured**
dpkg: too many errors, stopping
No apport report written because MaxReports is reached already
** Errors were encountered while processing:**
** gufw**
** python3**
** python3-apt**
** python3-dbus**
** language-selector-common**
** ubuntu-drivers-common**
** python3-chardet**
** python3-debian**
** update-notifier-common**
** lsb-release**
** python3-gdbm:amd64**
** python3-commandnotfound**
** python3-distupgrade**
** python3-update-manager**
** python3-gi**
** ubuntu-release-upgrader-core**
** update-manager-core**
** apport**
** apport-gtk**
** gconf2**
** python3-defer**
** python3-aptdaemon**
** python3-aptdaemon.gtk3widgets**
** apturl**
** gdebi-core**
** libgksu2-0**
** gksu**
** gdebi**
** python3-brlapi**
** python3-cairo**
** gnome-orca**
** hplip-data**
** language-selector-gnome**
** lightdm-gtk-greeter-settings**
** python3-gi-cairo**
** onboard**
** python3-blinker**
** python3-cffi-backend**
** python3-cffi**
** python3-configobj**
** python3-cryptography**
** python3-django**
** python3-lxml**
** python3-oauthlib**
** python3-pexpect**
** python3-pil:amd64**
** python3-reportlab**
** python3-requests**
** python3-smbc**
** python3-sqlparse**
** python3-tz**
Processing was halted because there were too many errors.E: Sub-process /usr/bin/dpkg returned an error code (1)
}
Not sure what to do here. I was considering reinstalling my os since I did’nt take any snapshots of the system, which I should have done.
Any Help is much appreciated!