Over 1 million tech questions and answers.

Python For Windows

Q: Python For Windows

I feel a bit trapped, because there doesn't seem to be a good version of Python for windows. I know there are some, but they aren't open source, and I kind of need that for the project I'm doing (not a project in Python, but rather a project for school.) So, are there any other simple programming languages that are free and open-source? And when I say simple, I mean kindergarten simple.

Preferred Solution: Python For Windows

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: Python For Windows

Read other 7 answers

Porting Perl To Python.

Summary: Porting legacy Perl to Python can be a daunting task. In this article, learn some of the theory behind dealing with legacy code, including what not to do.Click to expand...

-- Tom

Read other answers

I'd like to do some work, just for myself, with Python on a Windows computer, Windows 8. Cannot find the autoexec.bat file. Would like to put the path
PYTHONPATH=%PYTHONPATH%;C:\Python27 into the autoexec.bat
file but there is no such file.

I can add this to the ControlPanel/System and Security/System/Advanced
system settings/Adanced/Environment Variables... window in the User
variable window. I entered:
Value %PYTHONPATH%;C:\Python27

But, every time that I shut off the computer, I loose that path
and have to enter it again.

I'd have posted to the IT Forum but that "says" that it is for businesses and this is just for me.

Any suggestions?

Thank you

A:Python environment variable Windows 8

Hello cmptechinfo

We can try and these via the registry,

Do you know if this has to be a system variable or a user variable?

First thing to do is to open Regedit. Press the 'windows key' on the keyboard + R at the same time -> Type in regedit

For User Variable
Navigate too HKEY_CURRENT_USER\Environment
Click on Edit -> New -> Expandable String Value -> Call it PYTHONPATH -> Double click on PYTHONPATH -> Set it too %PYTHONPATH%;C:\Python27

For System Variable
Navigate too HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
Click on Edit -> New -> Expandable String Value -> Call it PYTHONPATH -> Double click on PYTHONPATH -> Set it too %PYTHONPATH%;C:\Python27

Read other 3 answers

Sup guys,

Sorry if this is in the wrong section/been asked before!

I need to know if all the programs/games that I run right now on my vista laptop will be compatible with windows 7 pro.

My laptop specs:

Windows vista 64 bit, 4 GB of RAM ati radeon graphics card.

I just need to know if the following things should be compatible:

Python 2.6

Call of duty World at war


Google sketch up

Autocad Maya

Daz studio

Google chrome...
Thanks for any help!

A:Windows 7 compatibilty w/python & other stuff?

Just wondering if you tried Google yet. That's where I will look...

Read other 3 answers

I access python from a network share. This works fine on XP but on
windows 7 it throws the following error:
Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 32 bit
(Intel)] on
Type "help", "copyright", "credits" or "license" for more information.

>>> import random

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "t:\win32\python-2.6.1\lib\random.py", line 871, in <module>
_inst = Random()
File "t:\win32\python-2.6.1\lib\random.py", line 96, in __init__
File "t:\win32\python-2.6.1\lib\random.py", line 110, in seed
a = long(_hexlify(_urandom(16)), 16)
WindowsError: [Error 127] The specified procedure could not be found
Is there some security policy that I need to enable/disable to use
python from a network on windows 7?

It works without any issue on win7 if I copy python to my local drive.
Also, accessing python from the same network share works fine on win
XP. So I am suspecting some security policy of win7 that is causing
problem while accessing it over a network share.

A:Accessing python from a network share in windows 7

check following services: ON

Computer Browser
DHCP Client
DNS Client
Network Connections
Network Location Awareness
Remote Procedure Call (RPC)
TCP/IP Netbios helper
Wireless Zero Configuration

Read other 2 answers

When I am trying to start python they gives one error the error is ms.ap.dll missing try to reinstall application what should I do now?

Read other answers

Am writing a program which simulates the action of an atm machine and I need it to end when option "c" is chosen. How exactly cn I do this, the only ways i can think of are...rubbish...

A:Python atm

Hi eventide,

Perhaps this link will help which is the result of searching for case statement here.

I assume you can structure your input options in a case statement - one of which would be 'c' to switch to in the proper Python syntax, of course.

-- Tom

Read other 1 answers

i am trying to learn python not sure if its loaded properly on my pc any one as any detail instruction for win7 installation

A:python and win 7

If you're using ActivePython, the installer should have everything configured for you. You will, of course, want to read the accompanying documentation for how to run your python scripts.

Read other 1 answers

How does PHP compare with Python and witch one is better to learn for future use?

A:PHP vs Python

Read other 6 answers

And is it something I need or just another security and privacy risk HP put on my computer>

A:What is Python>

Read other 8 answers

I am having trouble running pip. It is supposed to come installed with python, but my computer doesn't recognize it. I try installing it, but get an error message. Could it have something to do with running 32 bit python on a 64 bit computer? I have version 3.6 python.

Read other answers
Q: python

Does anyone know what python 2.2 combined win32 extensions is?
Do I need it on my pc?
I just noticed it about a week ago.


Hello dee1-2-3 and welcome to BC.What is Python?Python is an interpreted, interactive, object-oriented programming language. It is often compared to Tcl, Perl, Scheme or Java.Python combines remarkable power with very clear syntax. It has modules, classes, exceptions, very high level dynamic data types, and dynamic typing. There are interfaces to many system calls and libraries, as well as to various windowing systems (X11, Motif, Tk, Mac, MFC). New built-in modules are easily written in C or C++. Python is also usable as an extension language for applications that need a programmable interface.Unless you are doing some programming..............

Read other 1 answers

Is this a necessary software for windows XP?...Trying to clean up my HD..Don't even know how it got on my system..

A:Python 2.2.3?

Python is a programming language and not absolutely necessary unless you have programs installed that need Python in order to run.

Read other 1 answers
Q: python

can any one please tell me how to compile a python source code into a standart .exe file



Read other 2 answers

What are the uses of Python in Software Development?

Read other answers

Does anybody know what that is? (Python 22)

It is a sizable prog. and is in the start up line.
when I do a search for it , I can not find anything ??
I tried google for info , no luck there.
accept one site that said "send me $$ and I will tell you"

Well I have a few words for them.
thanks to anybody who can help.

A:Python 22 ??

See if this helps: http://www.python.org/doc/faq/installed/

Read other 2 answers
Q: Python?

Is anyone here versed in Python? My son is into programming and already is very knowledgeable in several programming languages but is just learning, on his own, Python. I'm sure he would like to become acquainted with anyone who is already fairly fluent in this new language. TIA.

Read other answers

I have just started learning Python and like it a lot, but all that seems to exist to use it is the interpreter. I'd like to be able to compile things written with it into stand-alone Windows executables... does anyone know of any way to do this?

A:Python Compiler (?)


Read other 3 answers

I can't install any version of Python onto my laptop; I am getting the error message: "This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package." My laptop is 64-bit, but any version of Python would be fine - I.e. Python 3.3.4 or Python 2.7.6 - I just need it installed!!! Thank you!

A:I can't install Python

emmy11 said:

I can't install any version of Python onto my laptop; I am getting the error message: "This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package." My laptop is 64-bit, but any version of Python would be fine - I.e. Python 3.3.4 or Python 2.7.6 - I just need it installed!!! Thank you! Click to expand...

64 bit but what OS?

Read other 2 answers

I ran a Secunia check to see if any of my applications needed updating, and it said that Python did. Since I'd never heard of it, I've been trying to research it. I know it was not deliberately installed, but don't know how it may have gotten installed (whether part of new HP system, or a particular application), and whether I should keep it. It doesn't show up in the list of Installed Programs.

Does anyone have more insight on this software?

A:How can I find out why I have Python?

Itunes, Realtek software, games?

Read other 3 answers


i know it probably sound familiar but i cant get the addon--beyond the sword---for civ 4 to work....

the original game works fine with the crack and everything...but even after adding the crack to the installed beyondthesword directory it reads failed python...anyhting i can do to correct this?

Read other answers

Python multiprocessing.

Oskar Andreasson (yes that Oskar Andreasson) explores using the language Python in a multiprocessing context - good stuff to fill your brain with if you are interested in multiprocessing!

-- Tom

Read other answers

I need to get Python for one of my classes and I was about to download it, when I came across Python source... What is it? I realize Python is open source, but can't figure out what is a Python source. I have Win7 64-bit and the warning notice next to the 64-bit download said that "it doesn't include source"...
I also need IDLE, so would that be a problem? Or should I just download the first, normal Windows installer?

A:What is Python source?

Hi wicked.ludicrous,

Since Python is a programming language, Python source is text containing Python statements in the programming language Python. See: Python (programming language).

For example: to execute a python source, one might issue the following command (in a Terminal command line window where $ is the command prompt) assuming that a Python interpreter executable is available on your computer:
$ sudo python check-my-hardware.py

The file check-my-hardware.py is the file containing python source statements interpreted by the python interpreter executable in root mode (via use the sudo) on a Linux platform. The python source code in check-my-hardware.py determines compatibility of a computer's BIOS with PAE and NX bit available memory.

-- Tom

Read other 2 answers

Hello! I am learning Python, and I think I know enough of it to make a simple computer game. I do not want to do something too elaborate, but something along the lines of Pac Man, or any of those old 'retro' games with the 1981 arcade game graphics (The kind that remind you of 'River Raid', 'Pong', and 'Space Invaders'. Anyway, what kind of tools do I need to do this? Help is appreciated!


Read other answers

After two years break I tried to restart a Python/Excel program that ran ok then. The first lines of my Python code reads

import win32com.client, sys, os
excel = win32com.client.Dispatch.client.Dispatch('Excel.Application')
excel.Visible = 1

When I try to run it I get the error

ImportError: No module named win32com.client

How can I find the modul again?
I am using Python 2.5.1.

// Willy


Hello and welcome to the forum.

I am very sorry for the delay, we have been very busy lately.

Please try this:

Python for Windows extensions | Download Python for Windows extensions software for free at SourceForge.net

Read other 1 answers

I downloaded Python for the first time today and went to start compiling a code but when I did, it said there was a Syntax error. it highlighted the "2" in "3.2" at the top of IDLE. I tried deleting the 2 but it did the same thing and highlighted the "." after the "3" instead. Same thing when I tried Python 2.7. Both versions were the Windows x86 MSI Installer. Any ideas?

A:Can't get Python to work

Read other 10 answers

I want to buy a book on programming, but I cant decide between learning Ruby or Python. Which one is better to learn first? Which one is easier for someone who does not program, but has a good concept of how it works?

Please Visual Basic & Java people, try to stay with the topic

A:Ruby or Python which one is better?

Read other 8 answers

I have to use python for my uni course. Last week it stopped working, gave an error code but doesn't give it now. I have tried to unistall, repair and reinstall it again. A progress bar appears gets to about 25% and then freezes and slows my whole computer down. I also tried to delete the files from the C drive as well this also didn't work.

Any help greatly appreciated cheers.

Read other answers

Hi all,

I've got Python v.2.4 that supposedly has an editor and I'm unable to find it.
Can anyone tell me how I would open the editor.


A:Python editor

Read other 9 answers

Can someone explain to me how i can create clickable links within my wxpython program? i cant seem to find anythin to help me.


Read other answers

i was wondering if any one can tell me what the difference is between c++ and python and wich one you would recogmend to a complete newbie to programming also how does one compile a python source code i tried to look at pythons site but cant make sense of the code i am utterly confused

A:nick the python

Read other 12 answers

I am having trouble creating a program that allow customers to enter the insurance company name, annual premium and monthly (6% more) for insurance companies. The insurance company name, annual premium, monthly premium and how much more to pay if paid on monthly basis should be shown.

A:Programming Python

You have not provided us any code to help you with. Which part are you having problems with?

Read other 2 answers

Does anybody know a good Python starting book. I know a little C, but a beginners book would be good.


A:Python Book

Read other 8 answers

I need to know what some of Pythons server/net commands are, since I can't find any good lists of commands anywhere.
So if anyone knows any, or if someone would like to write me a simple server engine, I would be very happy.

Read other answers

I'm having a problem installing python and blender. I install python for windows through the MSI file provided by Python.org (2.6.1 and 3.0). I then install Blender (2.48). When i fire up blender it gives me this mesege.


Checking for installed Python... No installed Python Found.
Only built-in modules are available. Some scripts may not run.
So i go and check my environment vars and ofcorse the PYTHONPATH var is missing. so i set it up


Still nothing

I tryed again with python 2.6
Uninstalled everything, re-installed everything, setup the environment vars again.


and now i get


Checking for installed Python... C:\Python26\lib\site.py:150: Warning: 'with' will become a reserved keyword in Python 2.6
No installed Python found.
Only built-in modules are available. Some scripts may not run.

A:Python and Blender


I think you did everything right. For me a practical solution was to install Python 2.5.2 besides the 2.6 installation. After you've done this, all you have to do is change the PATHs from PYTHON26 to PYTHON25 (also LIB etc.).
This worked for me in Vista 64x, but I think this is not a specific Windows 7 problem. I guess Blender2.48 just doesn't like newer versions of PYTHON. Let us see which version Blender 2.49 will use.

Greetings from Holland,

Read other 2 answers


I have two versions of python installed:


The c:\Python27_x64 is in %path% and there's nothing in the 'set' command that mentions 26. When I run python from cmd.exe the 27 version is executed as expected. On the other hand, when I run python from win+R the 26 version is run. The path (when directed into a file) in both cmd.exe and win+R is the same.
Any ideas?


A:Different python is executed in cmd and win+R

Perhaps the 26 has an entry in the Prefetch folder? Try opening an Admin command prompt. Change directory (CD) to C:\Windows\Pefetch assuming Windows is installed on drive C:, then do "del *.*" and hit Enter. ( Make sure you are in C:\Windows\Prefetch before you delete all files!!! )

Try the Win+r and see if it does the same thing anyway. If it does, my theory is wrong.

Read other 3 answers

I am not able to install python on my windows 8.1 64x bit. Check the image for the system error message shown please help fast.... Thanks in advance....

Read other answers

I'm developing some scripts on Win 10. But suddenly all the script failed due to it cannot invoke CMD on Win10.
Here is one example,
import os
os.system("cd .")
It is a very simple code that python to call CMD to execute "cd .".
But it always return "-1073740791".
And all my other projects such as Jenkins failed because of try to invoke CMD.
Could anyone help me on this?

Read other answers

Hi, i just started my csc 102 course in college and it was supposed to be C++. Instead of that, we're going to be learning python which was never done before according to the professor. His explanation was that we could learn more of python in one introductory semester course than c++. I agree with his reasoning, but i'm still somewhat saddened since i always saw c++ as a kind of king in programming and was hoping for the course to give me a better push into the language that i could achieve by learning myself, since every time i start to learn alone, after a while i start playing games and don't come back to it. I was wondering if python could be used to make high quality game engines that don't lack in performance to c++ game engines from which( as far as i know) all the great engines come from such as the Unreal Tournament Engine and the Crysis Engine.

Read other answers

I have a file which is created using C++ code. I'm parsing that file with python and I need to know the size of a struct that is the header of the file. Is there any way I can import the C or C++ code into my python code and call the C function sizeof()? Or is there a better way to do this?

More specifically, line 336 of this file
is the structure that I need the size of, but I honestly can't even fathom a way to get it from python. I can just assume little_endian is true (I think most platforms that run netscape & firefox are little endian??), which is not ideal, but I still wouldn't know how big that structure is...what's the sizeof() a function anyway--the same as the data type of the function plus all the sizes of the variables in it?

If anyone could help me out with this, I would really appreciate it. Thanks!

A:Python getting sizeof from C

Read other 6 answers

I am trying to use some Python functions from C, using Dev C++ compiler. However, everything I try does not work, as it gives me a compiler and linker error, every time I try to compile the C code. Any input or help would be much appreciated. Thanks -Fabez-

A:C \ Python Interface

Read other 7 answers


I was trying to update my Python version yesterday, from 2.3 to 2.7. However, when I had finished installing 2.7, I was unable to open IPython. When I right-click a folder and click "IPython here" a window opened and I was redirected to a command prompt window. I uninstalled all Python after that and tried reinstalling, but had no success in getting IPython working.

If you have any insight into what's going on and how I can remedy the issue, please let me know.

Read other answers

Hello everybody,
I'm sure everybody here knows some Scripting language and have working knowledge. I need help with getting started to learn but i want to start with some project wide enough to help learn the language and understand the concpets of python. There are some other scripting languages i know about, for eg: perl, php but i'm interested in this one..dont know why???
Need help of someone who is actively working on it or has worked in the past and can throw some pointers here to get started.
I dont like the idea of reading pages and pages and then impementing something. The other way round is a much faster and better way.

Please post your replies soon... Thanks a lot!!

Read other answers

I am a beginner in Python. I have learnt other languages before, such as C++ (beginner) and JQuery. But I am seeing the LOOP system in python is quite confusing.

Well I want to achieve a simple result. The program will loop through a list of words, and then it will remove the words that matches with the FIRST two letters with the next word in the loop. Look at the code:
test = ['aac', 'aad', 'aac', 'asd', 'msc']
for i in range(len(test)):
if test[i][0:2] == test[i+1][0:2]:

# This sholuld output only ['aac', 'asd', 'msc']
print test
The code above should remove 'aac' and 'aad from the list. But actually, I am facing an IndexError. Furthermore, I wasn't able to achieve the desired result. Can you please explain?

A:Python - Unexpected IndexError

len(test) will return 5 as this is how many strings there are in the array. On the last iteration of the loop, i+1 is going to be bigger than the size of the array, and will therefore cause an index error. What you can try is something like:


for i in range(len(test) - 1):

Read other 1 answers

I searched the forum and didn't see anyone else with the issue, hopefully someone can help me (and probably others) solve this!

I keep on getting this error at boot:
Title Bar: Fatal Error!
Error loading Python DLL:
C:\Users\Gordie\AppData\Local\Temp\_MEI42162\python26.dll (error code 5)

I think it has to do with Google Drive loading at boot and trying to utilize some Python library. I happened at a Fresh install and stops when I uninstall Google Drive. I am thinking that it is some sort of permission error since Windows 8 seems to have tried to idiot proof a lot of the security settings, but has caused weird errors elsewhere.

I've attached a screenshot of the error, for what it's worth, and hopefully someone can help. I have ignored it up until now...but it's annoying me a lot now lol!


Basic Machine Info:

Lenovo Z570
Intel Core i7
8GB Ram
Windows 8 Professional

A:Error loading Python DLL

IMO nothing should be loading out of a Temp directory. What happens when you clean out the Temp files?

C:\Users\Gordie\AppData\Local\Temp\_MEI42162\python26.dll (error code 5)

I tend to suspect malware, but have never been impressed by Google's use of non-standard directories.
I've also had issues with driver signing on some Google apps in Win8 (particularly GBridge) - so I wonder if something like this is indirectly causing your issues.

Please provide this information so we can provide a complete analysis (even though you're not reporting BSOD's): https://www.eightforums.com/bsod-cra...tructions.html

Please scan the system with several independent scans to ensure that this isn't malware related. Here's a link to some free online scanners (and other methods): Free Online AntiMalware Resources

Read other 1 answers

From interpreter in dos...

>> python program.py

....will not execute. Path is set and file properly named. Idle will execute, but not from command window.

Windows 7 64, Python 3.1.1 64 bit version

A:Solved: Python interpreter from dos

...oh yeah gives message...syntax error with marker under last letter of program name...

>>> python program.py

marker under the m in program

Read other 2 answers