Questions tagged [python]
Python is an interpreted, general, high-level programming language. Programming questions are off topic. Questions about the use of Python should be asked at Stack Overflow (https://www.stackoverflow.com) instead.
3,166
questions
1
vote
1
answer
16k
views
Where are the log files located in Windows?
I've got a program written in Python that writes to stderr and stdout. I invoke it using pythonw, that means it runs without a command line.
Does Windows save those log files and if yes, where?
(I ...
2
votes
7
answers
1k
views
Install Python for Windows
What is the best way to install Python for Windows?
8
votes
6
answers
8k
views
Installing pygame on Snow Leopard's system Python 2.6
Snow leopard has python 2.6 included now, and I want to install pygame on it, but it says its for Python from python.org, not system python. I tried using setup.py from source, but it didn't work. Is ...
1
vote
3
answers
433
views
Using macports to install py25-pil is installing just a ton of unrelated stuff
It's been going for an age and things I have seen scroll past include such gems as libX11, ncurses and my personal favorite: perl5!
Is this normal?
27
votes
5
answers
81k
views
How can I change the default Python version on Snow Leopard?
I recently upgraded my Mac OS X 10.5 Leopard install to 10.6 Snow Leopard, and with that came an upgraded version of Python, 2.6.1 (instead if 2.5.1). Now when I type python in the Terminal i still ...
0
votes
2
answers
3k
views
Running a Python script from its icon in Ubuntu
Let's say I have a Python script sitting in a folder I just opened with the graphical file manager in standard Ubuntu. What would be the quickest way to run it?
6
votes
3
answers
25k
views
How do I properly update Python on Mac OS X
If I download python from the Python website and try to install it with the installer, it installs, but I need to specify that I want the new version of Python when I run my programs from terminal. If ...
7
votes
3
answers
5k
views
Preferred way to install multiple python versions on Ubuntu Jaunty
Situation: Jaunty ships with 2.6, which does not fit my needs because many libraries are still failing. I want to have a system default 2.5. Also, for testing purposes, I need 2.6, 2.5 and 2.4 ...
16
votes
9
answers
20k
views
Vim: execute the script I'm working on in a split screen
I'm working on a small python script, which needs frequent execution in order to debug and further develop.
Can I split the vim screen and execute my script on one part with a keystroke?
0
votes
2
answers
2k
views
To install Gaphor by Easy_install and its dependencies by MacPorts
I seem to install Gaphor successfully by Easy_install
$ sudo easy_install gaphor
Searching for gaphor
Best match: gaphor 0.14.0
Processing gaphor-0.14.0-py2.5.egg
gaphor 0.14.0 is already the active ...
1
vote
4
answers
4k
views
To run Python inside HTML -file similarly as PHP
I know that you can have PHP -code inside HTML -file.
I would like to know how you can do the same with Python.
How can you run Python inside a HTML document?
5
votes
9
answers
2k
views
Is Python only for building backends in making websites?
I have seen no website built by Python such that the url of the website contains .py at the end. I have seen only index.html and index.php, but sometimes nothing as in SO. I know that you can hide the ...
3
votes
1
answer
3k
views
To install Markdown's extensions by Python
The installation notes (git://gitorious.org/python-markdown/mainline.git) say in the file using_as_module.txt
One of the parameters that you can
pass is a list of Extensions.
Extensions
...
15
votes
3
answers
19k
views
How can I make a table of contents for a markdown document with Python/AWK/SED?
I have the following markdown document:
Heading-a
==========
---text---
Heading-b
------------
--- text ---
Heading-c
----------
--- text---
Heading-d
=======
--- text----
Heading-e
---
...
...
2
votes
2
answers
2k
views
Nokia E71 - USB mode and Linux and Python
I just got a Nokia E71, and a friend installed Python on it - which ought to be uber-cool.
But here's what's driving me mad at present :
I plug in the USB cable to connect to my Linux laptop.
It ...