How do I repair Python installation?

How do I repair Python installation?

  1. Step 1: download python 2.7 deb package from here and install it sudo dpkg -i
  2. Use dbkg tool to list everything related to python sudo dpkg -l | grep python.
  3. remove everything found above. sudo dpkg –purge –force-all package name.
  4. try to do sudo apt upgrade.

How do I fix Python installation error?

Uninstall the corrupted Python installation. Install KB2999226. Install Python as Administrator….I am also using win 7 home premium SP1 and encountered this problem, I solved it by:

  1. Go the Windows Update in the Control Panel.
  2. Search for the installed update named KB2999226.
  3. Uninstall that update.

How do I completely reinstall Python Ubuntu?

To do this, manually download the python2. 7 package (and its dependencies), and manually install them using dpkg (bypassing APT, which requires Python). Once that’s installed, apt should work again, and so apt-get install ubuntu-desktop will restore your system.

How do I install and reinstall Python?

Navigate to Control Panel. Click “Uninstall a program”, and a list of all the currently installed programs will display. Select the Python version that you want to uninstall, then click the “Uninstall” button above the list – this has to be done for every Python version installed on the system.

Where is default Python installed?

AppData directory
Install Python on Windows the smart way By default the Python installer for Windows places its executables in the user’s AppData directory, so that it doesn’t require administrative permissions. If you’re the only user on the system, you might want to place Python in a higher-level directory (e.g. C:\Python3.

How to repair damaged Python 3.2.2 installation?

If this does not work, just grab subprocess.py from the python repository and copy it to the right directory. For example, for Python 3.2.2, navigate with your browser to: and the click in “raw” (left column) to download the file.

How to fix my Python installation in Linux?

It should install in /usr/bin, and may overwrite the /usr/bin/python symlink that should be pointing to 2.6. If it did (just run ls -l python* in /usr/bin to see), remove the symlink and point it back to 2.6.

What to do if Python installation fails in Apt?

Even apt-get –reinstall install python fails because APT won’t downgrade Python to 2.7.5. In order to repair your system, you need to allow APT to perform downgrades. To do that, define APT preferences. Create a file /etc/apt/preferences.d/allow-downgrade containing

How to use Windows Installer to install Python?

Using Windows Installer 1 Installer Features. Python 2.4 is distributed as a Microsoft Installer (MSI) file on Windows. 2 Non-interactive Installation. The property TARGETDIR determines the root directory of the Python installation. 3 Uninstallation. 4 Administrative installation. 5 Advertisement.