Corrupted paths in Python 3.7 and it is possible restore/revert Python3.7 to it's original state? (19.04)

My python3.7 paths are corrupted. As I ended up installing apt and pip3 packages, from virtualenv, wrapper, django. Which is bad practice to install from pip3. I didn't back the files up properly. It ended causing issues in the venv directory and on PyCharm IDE. I tried uninstalling the third version of virtualenv and django. Which didn't make a difference.

So essentially revert Python3.7 to to it's original state, no extra packages installed etc. Terminal:

python3
>>> import sys
>>> sys.path
['', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/name/.local/lib/python3.7/site-packages', '
/usr/local/lib/python3.7/dist-packages', '/usr/lib/python3/dist-packages']

1 Answer

You have only one path to delete.

Here is what a stock install looks like:

>>> import sys
>>> sys.path
[ '', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/dist-packages', '/usr/lib/python3/dist-packages'
]
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like