Accidentally removed dist-packages folder, what to do now?

0

I did something very stupid. I was copying some self written packages to the python dist-packages folder, then decided to remove one of them again by just rewriting the cp command to rm. Now the dist-packages folder is gone. What do I do now? Can I download the normal contents of this folder from somewhere, or do I need to reinstall python completely. If so - is there something I need to be careful about?

vicco

Posted 2016-01-12T10:20:58.153

Reputation: 119

Answers

-1

Just try

apt-get --reinstall install python

You can reinstall your python installation. Tell us if the packages were recovered once you tried

Jesus Cepeda

Posted 2016-01-12T10:20:58.153

Reputation: 190

No, they were not. The folder is still empty. – vicco – 2016-01-12T11:17:31.790

1The dist-packages folder contains third-party modules, not Python itself, so reinstalling Python does not help resolve this situation. – tripleee – 2016-01-12T12:01:40.200