How to completely erase Python 3 from Windows? - python

I had Python 3 working well on Windows 10, with Anaconda installed. When I uninstalled Anaconda, something went wrong and I started having this problem.
I tried all the solutions but nothing worked. I decided to reinstall Python. I uninstalled with no issues (the scripts and lib/site-packages directories were not deleted, but I assume that's the correct behavior) and when I install again, all the executables and files in the main directory, including python.exe, are not installed. I also tried the web installer but got the same results.
If Python cannot be reinstalled, that means that when I uninstalled it something remained in Windows. How to get rid of Python completely?

Related

Beginner: errors during installation of Anaconda and update of Python on Bash terminal

I am a complete beginner in coding.
So, I'm new to the programming jargons and processes and installations.
Please excuse me if I have misunderstood something.
I have tried to install, uninstall apps completely .. and reinstall.. and update .. Phew! It feels like a mess to me and I'm a little lost without proper direction.
And I feel that the below issues are a part of this installing, and reinstalling.
Current situation:
I tried to download Anaconda and at the end of the installation process I got an error message saying installation failed and that I had to contact the manufacturer.
But, I saw Anaconda navigator in the apps section!
I had tried to remove all the system files before reinstalling Anaconda.
How do I know if its installed properly?
Related to this: can I download/access Atom and PyCharm environments through this Anaconda navigator instead of downloading these two interpreters separately?
What does that mean to link Conda interpreter in PyCharm? How is this different?
Because when I used PyCharm previously I had issues assigning an interpreter to the PyCharm projects.
I tried to update the Python version on the Mac terminal through the Excode and Homebrew process. And during installation I got a message saying installation had failed.
But, now when I check on the bash terminal for the Python version it shows Python 3.8.8 !
How is this possible even after the error with the installation?
Now, can I uninstall Excode and Homebrew from my computer?

Installing opencv for Python

I have both Python 3.7 and 2.7 installed currently, and have a simple image processing script that calls for opencv. However, I keep getting the "module not found" error. I've tried using pip install, pip3 install, and installing the Windows executable from the opencv website, none of which have fixed the problem. The script won't run from either 3.7 or 2.7! I'm currently trying to use Visual Studio Code on a Windows 10 Surface computer.
Other threads seem to suggest that I need to update the Python registry/pointer or something to reflect the actual install location, but I can't seem to find how to do this. Or can I simply copy/paste the directory or files into Python directly? (Python 3.7 is preferred, or for both if possible!)
Edit: After uninstalling and reinstalling both Python 2.7 and 3.7, I think I figured out what the problem was! I was still having issues upon reinstall, so I tried rolling back a version to 3.6. During this installation, I noticed that even pip wasn't working anymore. It was at this point I realized that somehow my installation of Python was done with administrative privileges by default. Even though my account is the only one running on my personal computer, I still had to install pip with elevated privileges to get it to work. Now it seems like OpenCV and other modules are working!

Pycharm does not detect installed installed packages

I got a fresh installation of Python 3.6.6 and PyCharm 2018.2 Commmunity Edition.
Unfortunately PyCharm (and also a installed with Python IDLE) does not see packages installed with pip.
I’ve installed with pip some pakages: Pillow, Pyglet, Pygame, Arcade. I can see them using pip list command, but they are inviosible in PyCharm interpreter settings. PyCharm detects only setuptools and pip.
I reinstalled Python and Pycharm several times, tried to reinstall packages with pip, but nothing helps.
I have currently no access to my dev pc, but i encountered that specific problem multiple times before.
PyCharm provides the funtionality to use multiple python interpreters (virtual interpreters provided by pycharm and the python interpreter installed on your system). Have a look at your projects python interpreter in your project settings.
It is possible that you are working on an env(may be venv) that pycharm is not able to see.
In Pycharm you will have to go to Preferences->Project: -> and then install the package there. It will then see the packages.

Anaconda installation problems - how to uninstall Anaconda (Windows)

I recently tried installing Anaconda for my Windows 10 laptop. Unfortunately, this didn't seem to work, as there seems to be no actual Anaconda application on my computer, rather just a collection of folders and files on my desktop. I think this problem can be attributed to me downloading the 32-bit version of Anaconda while my OS is 64-bit, though I am not sure this was the problem. Regardless, I would now like to uninstall Anaconda from my computer. How would I go about uninstalling Anaconda from Windows despite Anaconda not fully downloading and only consisting of various folders on my desktop. I'm not super computer-savvy so typing in commands directly into the console seems a bit intimidating.
Because the program isn't actually installed, you can honestly just throw all of the files needed TO install Anaconda into your trash or recycle bin. If you go to "Programs and Features" and you don't see Anaconda, then those other files and folders can just be thrown away.
There also is a
Uninstall-Anaconda.exe
directly in your Anaconda folder. But I'm not sure if it does something more than just deleting the folder/files.

Uninstalling Activestate messed up my python directory and all my settings

So I was really eager to try generating a django model diagram with django-extensions by doing the following:
manage.py graph_models -a -g -o my_project_visualized.png
Then I realized I need pygraphviz to make it work. I'm running Windows 7 64bit, so I installed Activestate and Graphviz as suggested by the documentation as a requirement. Graphviz 2.28 was installed quite successfully and then Activestate was installed with some tweaks msiexec /package activestate_install.exe /qr because it always stuck at "finish checking disk spaces required".
Later, it turns out activestate wasn't really helping in installing pygraphviz. So after a lot of trial and errors, I managed to install pygraphviz by following this guide http://blog.ropardo.ro/2011/11/28/installing-pygraphviz-on-windows/. Just as I tried to run the graph_models command again, python once again tells me that pygraphviz module is not installed... so I pip freeze to see if it's really not installed. Now comes the good part, pip freeze returns a traceback of ImportError: DLL load failed: %1 is not a valid Win32 application. But that only happens in virtualenvs, when get out of virturalenvs and pip freeze, it works as expected.
By googling around, I realized I might have installed some 64bit version package while having 32bit python 2.7.3 on my machine, and that's indeed what I did. Just that I don't remember which ones I installed were 64bit. It's late at night, and I'm tired and frustrated, so I started uninstalling things that I thought might be causing the problem. I uninstalled mingw32 and Activestate, and the next thing I know, I can't even get into python from command line. pip is not recognized either; every python package is not recognized. Checking back at the Python27 directory, half of the folders are gone in C:\Python27\Lib. There used to be a lot of files and folders which it's impossible for me to recall what they are, and now there's only 4 directories:
bsddb, importlib, site-packages, and test
and the site-packages folder is a lot "cleaner", too! I'm sure there used to be a lot of package files and scripts (some .pth files and .py files). Now there's only two files easy-install.pth and PIL.pth and some folders for some packages I installed. However, the most critical issue is I can't even use python in cmd now.
I thought maybe uninstalling activestate messed up some of the environmental variables I set, then I went into the system settings and added in things like C:\Python27\Scripts;C:\Python27\Lib\site-packages to PATH. I went back into cmd, and typed "python" and "pip", the response I get for python is The system cannot find the path specified., and for pip it's still 'pip' is not recognized as an internal or external command, operable program or batch file.
This is kind of the only time that I regret for not setting up a system restore point..
Could anyone please tell me what's going on here, what am I doing wrong, and how am I supposed to get everything working again? Thanks a lot!
Boy, you indeed messed up your installation. "ActiveState" is a python distribution for Windows, so you installed a new python distribution over your old one. When you uninstalled, it obligingly removed your python installation, including the default library.
You'll have to reinstall your Python installation, I'm afraid. Start from scratch or backup.
You have my sympathies, if that's any consolation.

Categories

Resources