Cannot change Windows Python Installation Path - python

I've once installed Python 3.6.2 - 32bit, however I wanted to install the 64 bit Version. When I want to uninstall it with the Windows Installer it tells me No Python 3.6 installation was detected. When I know choose Modify It only gives me a grayed out path.
Any Solutions how to get rid of it and reinstall?

I went a very old school way, I've used the old RegScanner Tool to search for any occurrences of Python36. Deleted all Keys/Values, restarted the machine and was able to uninstall it when launching the Python Installer.

I ran into a similar problem as this and ended up needing to:
Check "Add or remove programs" for previous versions of Python.
Download the installer for that version.
Repair the older version of Python Windows thought was installed.
Uninstall the older version.
Try to install the newer version again.

Have you tried to uninstalling it , from control panel first remove
the installed package
Make sure you installing as administrator
Still not helped then try uninstaller tool(here is one : http://www.softpedia.com/get/Tweak/Uninstallers/Advanced-Uninstaller.shtml)

Related

Failed in installing anaconda, there are only three folders after installation

I installed the latest version of Anaconda last October, but this year when I wanted to use it I found that the anaconda navigator runs very slow and lags a lot. So I uninstalled it and wanted to reinstall it so as to see if this problem can be solved. However, when I began to reinstall it, a series of errors occurred. I have tried several versions of installation packages and all of them failed to install anaconda, reporting the “FileNotFoundError:[WinError 2] (the Chinese sentence here means “The system cannot find the file specified”)” Then I tried everything, including switching the installation position
to another disk, removing the.anaconda and.conda folders under C: \Users\Administer, and so on, but nothing worked. Finally, I found a version of Anaconda released at the end of 2017, version 3.5.0.0, and finally installed it properly. However, the python version is 3.6 in anaconda 3.5.0.0, and some packages I want to use do not work or cannot be installed. Besides, I ran into new problems when using the command “conda update anaconda” in Prompt. These included memory leaks and the mysterious disappearances of the two apps Anaconda Navigator and Anaconda Prompt. So I had to uninstall anaconda once again. Is there any way to successfully install the latest version of Anaconda and Python?
My installation process is as follows. My system is windows7(64bit).
installation process 1
installation process 2
installation process 3
there are only three folders after installation
You should completely uninstall Anaconda first before you give it a new try, see the official docs here: https://docs.anaconda.com/anaconda/install/uninstall/
Then there is also another stackoverflow post that you might want to look at in case of further trouble: How to remove anaconda from windows completely?

Python 3.9 pip install

I recently downloaded and installed Python 3.9 because I wanted to run a website scraper to more easily organize recipes found online. However, when I try to run pip it says it doesn't recognize it (and I have tried editing the path but every video or site I find has different information).
Even a basic check of my Python version comes back with no results:
I have uninstalled and reinstalled Python 3.9 but to no avail. There is also no scripts file within my python file and my computer doesn't even seem to recognise that Python is installed.
In python 3.9 you can add below path(scripts path) to your environment variable
C:\Users\ASUS\AppData\Local\Programs\Python\Python39\Scripts
Once the path is added, open a fresh CMD window and type pip --version.
You can see your pip version pip 20.2.4
I found that for Python 3.9 if you enter the command as py -m pip install, the installation initiates as expected.
Annotation 2021-06-17 121518_install pywinauto Visual Studio Code terminal
I finally can use pip install.
Here is how I do it:
Run python 3.6.9-adm64.exe
Choose Modify
Tick all boxes and click Next
Tick [Create shortcuts...appplication](not important) and Add Python to environment variables and click Install
Now run CMD and type:
py -m pip install (name) //pygame for example
Now I installed pygame easily.
I have fixed this issue by running apt-get install python3-pip
on my Debian Linux.
every video or site I find has different information
This may be due to the fact that those sites provide information for different Python versions.
As Alfie Hanks already pointed out in the comments: The right way to do it is to check the box Add Python 3.x to PATH when installing Python 3 for the first time. When re-running the installer / re-installing choose "Modify" and check the box Add Python to environment variables. That takes care of setting the correct environment variable so that the Python and pip binary can be found by Windows.
If you have trouble finding those options, take a look at circlepi314's answer to a similar Python question: https://stackoverflow.com/a/54029728/6710751 This one has screenshots of the installer where those options are marked.
Install python again and when the prompt window opens, click on the modify button. Then check if pip is checked. If not then check it and then proceed with the install.enter image description here
If it still doesn't work, simply uninstall python. And then when you reinstall it make sure that the ADD to path checkbox is checked.
I had the similar problem, I managed to solve it with the following:
I installed python 3.9 by Brew on my Mac, so the pip3 was broken
I resolved by uninstalling python3.9 and installing 3.8

How to get rid of pygame 2.0.0.dev6?

i just installed python on my mac and i had also installed VS code with it. Later i tried installing pygame but it didn't work so i found another version that installed the version that is not stable, or pygame2.0.0.dev6 - i think that is have you type it. So that went succesfull, but after i found out why i was not being able to install the stable version, so now i want to get rid of pygame2.0.0.dev6 and install the stable version because in my VS code editor it keeps saying that it is using pygame2.0.0.dev6 even when i have the stable version installed.
Please all i want is to uninstall pygame2.0.0.dev6. I tried going to the documentation and i tried uninstalling from the terminal itself but i still cannot uninstall it. Help would me much appreciated. Thank you!
pip3 uninstall pygame==2.0.0.dev6
Windows users should use pip instead of pip3
Always use virtual environments. This version problem will be mitigated.

Is it dangerous if I uninstall all the packages in `pip list` on MacOS?

The python I use is the one of MacOS. It seems that the python of the system did not carry pip, and pip is installed by myself.
It's very annoying to use the python of the system, there is always the "Permission denied" issue and I'm tired of this. So, I want to uninstall all the packages by pip firstly, and then use virtualenv. Before that, I'd like to know
Is it dangerous if I uninstall all the packages in pip list on MacOS?
Edit: Currently, there are both Python 2.6 and 2.7 on my mac in the directory: /Library/Python. Then can I remove python 2.7 totally and reinstall it in another way?
Do not uninstall MacOS python packages. I did that once. Wasn't a fun time. Even installing new packages can lead to huge problems as dependencies get updated and no longer work with OSX stuff, particularly stuff you can't even update because of SIP.
If you make a virtualenv, it will be totally separate from the OSX python. You can use pip in the virtualenv and it will not effect the pip outside of the virtualenv. In otherwords, you don't need to remove anything - just make the virtualenv and start pip insall'ing :)
I ended up installing Anaconda Python from Continuum Analytics and then setting my path to that python. This way I got an updated python to work with (plus a bunch of other advantages) but my Mac could keep Python 2.6 it needs to operate properly.

How to install pygame, cv2, anaconda, pip etc to any one version of python in ubuntu 14.04

I have Ubuntu 14.04 LTS. I guess different versions of python are pre-installed in Ubuntu 14.04. Right now when I type 'python' in terminal it opens python 2.7.11, but I guess the default version of Ubuntu 14.04 is 2.7.6. When I type /usr/bin/python it opens the default version. I know this can be done with making aliases. The real problem is, I have installed pygame, cv2 (that is for image processing) using apt-get. These are installed for default version of python i.e python 2.7.6. Also I have installed anaconda with python 2.7.11 using pip, but again 'pip' and anaconda are installed for 2.7.11. I know python 3 is also pre-installed there but I don't use it. Also I have no python version installed in user/local/bin.Now I want to know why this problem is occurring? How can I fix this now? Also how to import all the libraries for one python version(either default or another) and how to use it? How to configure my settings so that I would not have any problem in future?
If you have easy_install installed you can run
sudo easy_install pip
to install pip. As far as installing Anaconda goes, try using this stack overflow question's answer. If you can't get that to work comment explaining the issue.
First of all I want to thanks Bennet for responding to my question so that I was able to figure out what the problem was. Actually the problem was with aliasing. When I installed cv2 or pygame using apt-get, they were installed for default version but when I installed any package by downloading the installer first (like I installed anaconda), it was installed for python 2.7.11 because 'python' was aliased for this version(that is 2.7.11). So, basically make sure that the default version for which you want to install everything is the one which is aliased as 'python', and everything goes fine. I aliased 'python' for the default version and then installed anaconda via installer and now it has been installed default version.

Categories