How can I generate executables of python files using python's 3.8.5 version? So far I've been having a lot of problems with pyinstaller which only supports until version 3.7. Do I necessarily need to downgrade my python's version? If so, how can I change my python version using windows powershell (without anaconda)?
try entering
py -0
then see what available versions of python you have installed, then just enter py -"version number here" and it should boot up that version
Related
I already have python 2.7 and 3.7 installed on my computer. I just don't want to re-download python using pacman.
Is there a way to link python with MSYS2?
Thanks in advance.
If you want to use Python in MSYS2, you need to use the one bundled with pacman. Mingw-64 compiles Python using GCC for Windows and it is heavily patched downstream so that it will run. You can't use the normal Windows Python that is compiled against Microsoft Visual C, it isn't compatible.
I am using py.exe to fire a py script to require a minimal python version (3.6 in my case).
#!/usr/bin/env python3.6
...
...
This requires you to have some 3.6.x installed. How can I tell it my script also works with 3.7 and above? Is it even possible?
EDIT to make it more clear: In other words I'd like to run my script with any version above 3.6.x. I don't want to be told:
Requested Python version (3.6) is not installed
when I do have 3.7.
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.
Background:
I am a .NET developer trying to set up a python programming environment.
I have installed python 2.7.5. However I changed my mind and uninstalled 2.7.5 and installed python 2.7.6.
If I CMD in windows command promopt, the python version is 2.7.6
When I start the cygwin shell and type:
python --version
It says 2.7.5, this version is was uninstalled.
How do I get cygwin to understand it should use the new version. 2.7.6?
I believe there is commands to type in cygwin shell to solve this? Thanks on advance!
Cygwin has its own option to install its own version of Python. If you run setup.exe and poke through the Development packages, you'll find it. You probably installed Python here as well, and are running it in Bash. If you use CMD, you're running a different version. The fact that the version numbers overlap is just coincidental.
I've read that there's a nice text-to-speech package called pyttsx that can be included in my Python scripts. As soon as I try to install pyttsx things start falling apart fast. pyttsx is for Python 2.6 (2.7 maybe?) not 3.3. I have 2.7 and 3.3 (also Portable Python 2.7 and 3.2) installed but I can't get setuptools or easy_install to work. I got distribute partly installed but I'm might have seen some errors at the end of its installation so I'm not sure it's working and it won't install pyttsx anyway. There's a Windows .exe program that will let you install Python packages but it won't work for 64-bit Python. I've been searching for answers for days can can't come up with anything specific enough.
How do I install Python packages with 64-bit Python 3.3 on 64-bit Windows 7, or is that even possible?
Best source ever!
this man is a wicked fellow.
With distribute installed, launch the python.exe you want to use.
From within python interactive, run the following code:
from setuptools.command import easy_install
easy_install.main(["-U", "package"])
Substitute "package" for whatever you wish to install.