Python Installing issu - python

I reinstalled it many times but nothing is solved , what should I do ?

Although this question is a little old, I have a possible solution.
In English the message is:
Unable to start the program because api-ms-win-crt-runtime-l1-1-0.dll cannot be found on your computer. Try to reinstall the program to fix this problem.
The problem is a little confusing because it's not really a python problem. It's a DLL that you need to re-install.
Simply put you don't have the api-ms-win-crt-runtime-l1-1-0.dll on your machine, or it is unregistered. You could try to re-register it, but it's easier just to do the following:
Run windows update.
Download Visual C++ Redistributeable: https://support.microsoft.com/en-us/kb/2977003
Run the installer and select "uninstall".
Run the installer again and select "install".
If Anaconda already fixed it for you, I hope this still helps someone somewhere sometime.

Related

Spyder internal problem , how do i fix it?

I am completely new to coding. However, when i try to run some code as shown, this problem shows up. I tried reinstalling but it doesn't work.
(Spyder maintainer here) Sorry for the inconvenience. This is an error in Anaconda, which we already reported to them but it hasn't been fixed yet.
If you only need to use create Python programs, please consider to download and install our Windows installer, which you can find here and doesn't have this problem.

Visual studio coderunner extension does not work. Nothing happens when clicking on run

Coderunner extension for visual studio code used to work on my computer. Then, for no reason it stopped working. Whenever I press run, nothing happens. No execution, no output to the terminal, nothing. Absolutely nothing happens. I have searched the entire internet for my problem but no one has the same problem as me. I reinstalled visual studio code and coderunner extension but the issue persisted. Anyone with technical knowledge knows how to fix this ?
There can't be anything wrong with the extension configurations because I imported the extension configurations from an account on another computer which the coderunner worked perfect on. So my computer has the same extension settings for coderunner as that other computer and it still does not work to run coderunner on my computer.
I finally solved this issue by installing an older version of coderunner.
However, I am not satisfied with this solution. I should not have to use an outdated version of coderunner to make it able to work when there is newer better version of coderunner.
So if anyone knows how I can make it work with newer version of coderunner, feel free to answer.

How can I simulate a path that no longer exists to let python uninstall?

I installed python and then changed the c:/user/(username) of my computer.
After that I am unable to unistall/repair/modify python. I tired to downgrade and upgrade but failed with error windows cannot find the path.
How can I fix this? The version which was installed is 3.7.5 and I want to install the same or the lower versions.
edit: I tried to create a folder same from the error but it did not work. I tried to manually remove the python files too.
Try using the mklink utility.
mlkink C:\Users\vishn C:\Users\<yournewdir>
It's a hack, but it should let your system work through the python repair / modify / etc. problems.
When you're done, remove the "C:\Users\Vishn"; it won't delete the thing it points to, only the shortcut.
Finally did it with help of a third party application called Revo uninstaller.

Can't Install Pygame for Enthought Canopy using pip or easy_install?

Alright tried all the previous suggestions as specified in similar questions asked regarding this topic on StackOverflow. But I've encountered the following problems:
The default package manager has no pygame package available,hence its of no use.
Tried enpkg method,but then it exits sending out error messages which I can't read as they vanish quickly just before the window
closes.
Tried the pip and easy_install methods but they all spit out various
errors like "Could not find any downloads specifying the
requirements".I'm sure I haven't made any syntax mistake while
issuing the shell commands.
Hence I wish to ask for any way to install Pygame package in Enthought canopy either completely manually or by any other way conceivable.
If possible,a precise walkthrough would be greatly appreciated.
And please don't close this question right away as it's 'NOT THE SAME' as others because I've tried the other alternatives but to no avail.
Thanks for your time!
Edit:Forgot to mention,I'm using Windows 7 ,64 bit.
Which OS do you use? If you are using windows, try this Unofficial Windows Binaries for Python Extension Packages
Since your pip raise "Could not find any downloads specifying the requirements", I guess the reason is that it's not up-to-date. Try updating it.
I have one non_conventional Idea, just install the pygame for for your python which you just installed in your C:\ drive and then copy the pygame module in the which is found in the python27\Lib\sitepackages\pygame then paste it in the site-packages of the canopy

Problems in fully uninstalling Python 2.7 from Windows 7

some months ago, I installed Python 2.7 on my laptop (my os is Windows 7).
After, I decided to use Python xy 2.7.3 instead of 'pure' Python; so, as suggested, I removed Python 2.7 and tried to install Python xy 2.7.3. However, when I tried to run the .exe file for installation, a warning window appears telling me that Python 2.7 is already installed on my computer. I tried to install a different version of Python xy (2.6) and everything went fine; however, I'd really prefer to use the latest version of Python xy.
Actually, I can't figure out what went wrong whie uninstalling Python 2.7; does someone have any clue?
I can tell you that I followed the 'normal' procedure for programm uninstalltion; control panel -> Programs -> Remove Program
Thanks in advance
Stefano
Run regedit, backup and delete the registry keys:
HKEY_LOCAL_MACHINE\Software\Python\
HKEY_CURRENT_USER\Software\Python
My problem occurred when changing from Canopy to Python(x,y).
So, also delete all folders that are left behind when uninstalling.
https://support.enthought.com/entries/23580651-Uninstalling-Canopy
I also had this issue as well. It was due to third party installs. Even though you have uninstalled python, it leaves all the third party libraries that were installed and I think Python(x,y) just detects the directory.
To fix, uninstall Python 2.7 and then check to see if C:\Python27 still exists. If it does, go ahead and delete and then try installing Python(x,y). That is what worked for me.
I faced this issue: I tried to uninstall the python and fresh install, reason my pip version issue was not getting resolved. So I deleted the python folder, removed python from system path, and when I tried to uninstall from "Uninstall a program" in control panel, it showed "Windows installation package" error window and could not clean uninstall.
Solution what i found was: In the "Uninstall a program" select python and click repair. And then uninstall the python, it worked for me. Hope this helps and save some time.
PS: I am pretty new to python, and any help correcting me would be appreciated.
Maybe to put an answer out there.
Uninstalling anything from windows can have multiple side effects residing completly on your specific machine. As to what is common:
-> Python sets itself in your windows path. Here is how to modify your windows path: http://www.computerhope.com/issues/ch000549.htm
It means that there is a probability that python is gone but the path entry might not be. That is a guess however -> more information needed
-> Are you sure that everything was removed from your computer? If you already did the normal uninstalling process - try to look up if any python directory is still present.
-> Thirdparty installed? Have you downloaded any libs that are still on your machine.
Besides from that - it could be anything - the more information you give us the more we can say about it.
Maybe this post will help you: How to completely remove Python from a Windows machine?
I had python 2.7.12 and wanted to uninstall it for 2.7.9. I had the same problem as you and to fix it I tried to delete all of the local files and then uninstall however it still gave me the same error. So instead I decided to repair the python 2.7.12 and then uninstall which worked perfectly and completely got rid of the error.
I had python 2.7 installed and enthought canopy. I wanted to switch to python(x,y) to access a full version of the OpenCV library. python(x,y) installation complained about python 2.7 already being installed after:
1)Using windows control panel
2)Removing all lingering python files
3)Removing the windows path as suggested above
Not until I removed all registry entries related to python/enthough did python(x,y) install without issue.
I installed Enthought before. When I wanted to install Python(x,y) instead, I met the problems above.
After I had tried to uninstall Enthought and Python(x,y) from the Control Panel and then restart the PC, the problem still occured the next time I installed Python(x,y).
I solved this problem by:
deleting all the relevant files in C:/User/UserName/AppData/ about Python, including the third party softwares like Enthought;
deleting the Path in user and system Environment;
=====the two steps were failed if I didn't do the third step.=====
deleting the register keys as #Daniel said. (include all the relevant keys with the prefix py if you installed the third party software about Python. )
HKEY_LOCAL_MACHINE\Software\Python\
HKEY_CURRENT_USER\Software\Python
Locate that set up file which was used to install Python. Run it and choose repair. If that doesn't solve the problem. Go to c:\Python(x,y) and delete this folder completely by shift+Del.
Run that set up file again and click on "Change" which will ultimately install the Python again. By default in my case option to add path and making that version of Python the default on my system was unchecked which can be figured out by seeing the red cross mark in one of the installation screen. Click on it if you want set up to make it default Python version and also click on the option to indicate you want the path to be added in windows environment variable.
No need to touch registry as previous ones will be overwritten again.
In my case it worked. I was getting error like:
Fatal Python error: Py_Initialize: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Besides that un-installation was failing from control panel. So above steps solved all of my problem. Hope it helps.
I Repaired/Modified to install all the components for the Python
version I wanted to uninstall.
Once that was done, I clicked on Uninstall/Change and that uninstalled it for good.

Categories