2
I’m new to linux and was trying to make an example using Scrapy.
I did the installation of Python 3, but I already had Python 2 installed in my computer and I thought I would need to delete Python 2 or at least replace.
Looking on the internet I saw some commands about it and ran some until I found a tutorial and when I ran the listed commands I ended up deleting python.
When I was turning on my pc there was no toolbar and I couldn’t open anything! After several attempts with Recovery mode I managed to enter again.
But now when I try to run on the terminal sudo apt-get install
this error appears: E: The package python-apt needs to be reinstalled, but I can't find an archive for it
I wonder how I can reinstall python
No need to uninstall python2 they run parallel without any problems, this is poorly played
– Miguel
And is there any way to fix ? @Miguel
– lucas
Try to do
sudo apt-get udpate
, and then follow http://askubuntu.com/questions/101591/how-do-i-install-python-2-7-2-on-ubuntu or https://gist.github.com/lukandgren/2659457 or http://docs.python-guide.org/en/latest/starting/linux/. You have several things about this: https://www.google.pt/search?client=ubuntu&channel=fs&q=reinstall+python2.7&ie=utf-8&oe=utf-8&gfe_rd=cr&ei=9ITFV7z1Icjv8Aee46SAAw– Miguel