Unable to run PythonWin For Python 3.9 64bit - python

I was trying to create Python executables on Windows 10 Pro (latest) so was upgrading to the latest packages but it's changed.
I've just gotten rid of Python 3.6 and reinstalled Python 3.9. I then went and installed PythonWin for it using the following (there no longer seems to be what was a standard install package):
**pip install pywin32**
Python is on the start menu but, unlike earlier installs, the new way of installing PythonWin this doesn't seem to give me any kind of way to run the program. Surely it should create some kind of shortcut on the start menu?
Any advice on this would be most helpful.
James

SOLVED!
While I still have no idea why a Start Menu shortcut wasn't installed, I have found the executable that runs PythonWin.
It was located in the following folder:
"C:\Users<MyUserID>\AppData\Local\Programs\Python\Python39\Lib\site-packages\pythonwin"
Thanks :)

Related

VS Code Python Interpreter Still shows 3.8.6 even though the 3.9 update came out?

It appears that I'm still using Python 3.8.6 even though the Microsoft store version of python says the 3.9 update was released and that I have it installed. How can I use the new version from the Microsoft store? I tried reinstalling multiple times and tried installing from the python website before but I ran into a problem where I couldn't install libraries for some reason.
to fix this, do the following
Go to Python's official website, download the latest version of python 3.9.
delete the .vscode folder and restart your editor.
select your python version in the drop down menu as 3.9.
Warning: python 3.9 will not work on Windows 7 and below
I tried this process in my computer:
Download python3.9. I checked "Add Python3.9 to PATH" before installation:
It automatically adds python3.9 to the environment variables of the system:
Open the python interpreter in VSCode:
It is recommended that you enter "where python" in the cmd window to check whether python3.9 is available. In addition, please use the latest version of VSCode and Python extensions.(2020.10.332292344)

Python 3.8.6 says I have a newer version of Python installed, but I don't

I just installed Python 3.9.0 and I found out Pygame hasn't been fully released yet in this Python version. I then tried to uninstall Python and it said it uninstalled with no errors. Then, I tried to reinstall Python 3.8.6, and I got the following error message.
A newer version of Python has already been installed on this device.
I checked the control panel to see if Python 3.9.0 was still on my computer, and it wasn't. The only Python app was the Python launcher, and I got an error message when I tried to uninstall it. If I type py in the start menu a Python command prompt appears, but I can't open it. Can anyone help with this problem?
First check the version of Python by entering to the console using the command "python" in Command Prompt or Terminal to see if Python still shows the 3.9.0 version, if it does go to Control Panel and uninstall it from there, then try restarting the PC as the comment refers. If running the command throws you to the Windows Store try "python3".
If that doesn't work then uninstall Python completely and delete it's folder from the PC, restart and install again. I highly recommend Python installer from their website. To me the store edition gave problems with modules.
If the installer from the website does not work, then try version from the Windows Store, this version will give from the installer even CMD access.
I solved it this way on Windows 11:
First, download the installer of 3.9. Run it, do a repair installation, after that run the installer again, this time choose uninstall.
Next, run the installer of 3.8 to install, installation went successfully.

Cannot find python 3.5.x interpreter using .msi extension

I'm new to stack overflow. I was wondering if anybody knew if there was a .msi package for a python interpreter for python 3.5, I'm teaching a basic python class and wanted to be prepared for when it starts in a few weeks. There is a .msi packaged interpreter for 2.7 python on the official python.org downloads page but not 3.5 it seems. I am trying to use the interpreter in the community PyCharm IDE because I'm assuming most of the students will be using windows, not Linux (like I'm using). Any help would be greatly appreciated. Thank you in advance.
After Python 3.4.4 was released python.org stopped providing MSI installers for their Windows releases. Web-based, exectuable, and zipped installers are now provided for both 32-bit and 64-bit Windows releases. I'm not sure what the reason for this switch was, but an exectuable will install Python just fine. You can find Python 3.5.2 Windows executable installer at the bottom of this page.
All Python installs come with a Python interpreter. Make sure you select to add Python to your PATH during the install process. After Python finishes installing, open a Command Prompt, and type python to access the Python interpreter.

Python & Windows: Where is the python launcher?

I'm trying to use different versions of python on win7, and I was told that I can use the python laucher.
I find the docs for it: https://docs.python.org/3/using/windows.html#launcher
But I don't know where is it. Someone say its called py.exe, but there is no file with this name on my computer.
I installed python 3.4.3 with Anaconda, https://store.continuum.io/cshop/anaconda/, comes with Scipy
===========
UPDATE:
Since there is no python launcer in Anacoda, how can I re-install it? Or if there is better way of using different version on Win7?
It should be in the root directory of Python 3.3 installs and higher. It is not available for Python2.
Go to C:\PythonXX\ and you should find py.exe for your version.
In Command Prompt or your favorite shell (like Cygwin), run:
py -3.3 -m path/to/myscript.py
However, this only works if you have a 3.3 or higher installed.
EDIT: Anaconda does not come with Python launcher. It is only available for an ActiveState, standard, or probably many other installs.
EDIT2: Here are two brand-new, Python 3.4 installs of ActiveState Python and Anaconda Python, screenshotted. Notice how Anaconda Python does not include py.exe and a lot of other (non-essential) executables?
EDIT3: After some "difficult" testing, just set anaconda as your default install for Python3.4 and grab the py.exe from another install. That is all. So you can install Python3.4 from another source, uninstall it, and save the py.exe, make sure it is in the system path, and the python launcher is fully installed.
EDIT4: Actually there's also a standalone installer available here:
https://bitbucket.org/vinay.sajip/pylauncher/downloads
If installing python from python.org's downloads and you select "[x] install pylauncher [x] install for all users", py.exe is installed in C:\Windows\py.exe.
I think if you don't install for all users, then it's in the python install root.
If you are able to run py from cmd.exe, then you can find out where it is with where py.exe.
It looks like the python executable is part of the conda command if you're using Anaconda, according to their website. According to Alexander Huszagh (see his answer), the python launcher doesn't come with Anaconda python.
Here is a blog post that is perhaps relevant.
I first tried everything Alexander Huszagh has written. But none of it helped.
It took me a really long time to find the Python Launcher. I had accidentally changed how to open .py-files. And once you change it, you can't do right mouse click "Edit with IDLE" anymore. I eventually found them in the C:\Windows\ directory named py.exe.
The experts gave a reply which seems relevant to one version of python but not the latest version. e.g. In my least favorite command line tool I entered:
C:\Program Files (x86)\Python36-32>dir py.exe /s
It replied:
File Not Found

Installing kivy on portable python

Im trying to install kivy in my portable python with this installer:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#kivy
(Its a pre-compiled version of kivy)
When executing the file, it says "Python 2.7 version required", but since the python version im using is portable, I guess this is normal.
So my question is, is there a workarround to install a precompiled package in portable python? By somehow registering the portable python installation?
More (maybe innecesary) information:
My guess would be registering portable python in the system (Windows 7
64), but I already tried by changing the "path" enviroiment variable to point all
the required python paths without success.
I cant use the kivy modules to install it by compiling it on my computer because its too hard for me,(cython wont work, or then another of the 7 different modules will give me problems, untill i destroy my python installation. I already destroyed my
previous python installation while doing so, and had to reinstall
windows to get python working again -_-
Thats why I want to migrate
into portable python, but if this is not possible I will just go back
to normal python and install kivy on it...
The Kivy package on windows includes a portable python installation with Kivy installed.
Double click on the kivy.bat.
You will have a console have easy_install and pip available. Compiler is set to Mingw, and cython is already installed. Everything will be installed in the portable installation, not your system installation.
Enjoy :)
Note: if you want to see how we do, just edit the kivy.bat.

Categories

Resources