Problem running a Python Program and PyPM install packages

Posted by be on 2013-04-19 13:22

I'm running: Window 7 Enterprise

Download: ActivePython-3.2.2.3-win32-x86.msi
* ActivePython Documenation
* IDLE (Python GUI)
* Python Interactiveve Shell
* Python Package Manager (PyPM)

It went to directory:
C:\Python32

I save the following Python Program:
test.py
#! /usr/bin/env python3.2
primes=[2,3,5,7]
for i in primes:
print(i)

I tried to run my Python Program
F:\ > test.py
Choose the program you want to use to open this file: C:\python32.exe
And nothing happen, it did not run.

Could this be the problem and how can I correct it?

C:\Users\ngillem>echo "%PATH%
"C:\Perl64\site\bin;C:\Perl64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Com
mon Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\ActivIdentity\ActivClient\;C:\Program Files
(x86)\ActivIdentity\ActivClient\;C:\Program Files (x86)\QuickTime\QTSystem\

-----------------------------------------------------------
I'm also having a problem Listing and Installing packages in the repository.

I select the following: Python Package Manager (PyPM)

C:\Windows\system32> pypm list
'pypm' is not recognized as an internal or external command, operable program or batch file.

C:\Windows\system32> pypm install beatifulsoup4
'pypm' is not recognized as an internal or external command, operable program or batch file.

grahams
ActiveState Staff
Mon, 2013-04-29 15:04

If the package is installed by a normal UserID, the installer will not have permissions to modify the $PATH.

This means that you will either need to re-install as an Administrator, or supply the full pathname for Python3 and for PyPM.

Enterprise versions of Windows often have Group Policy settings that restrict the ability of local users to add software. If you are installing with an Administrator ID, and it is still unable to set up the PATH, check with your IT support to see if there are Group Policies blocking you.