I'm new to Python and I'm trying to write a code which has this task: I need to open the file romeo.txt and read it line by line. For each line, split the line into a list of words using the split() ...

I managed to delete my python in usr/bin by foolishly doing sudo rm /usr/bin/python and now it seems like I need to reinstall my OS.
First off is this necessary? And secondly is there an easy way to ...

This might be answered already but I could not figure out a good way to phrase it to look for an answer so I hope you'll bear with me.
I want to change the color of the text output on Terminal if it ...

I have a little bash script that runs Spyder, a Python IDE, courtesy of this question. The purpose of the bash script is to be accessible via Quicksilver and the Finder. The same answer also tells me ...

Currently I am using a following command: while true; do python [file]; sleep X; done
I was wondering if I can stop the loop if the result prints a word that I'm looking for.
Plus is it possible to ...

I'm writing a Python script that changes network settings with shell commands like networksetup -setv4off 'PANTECH UML295' and networksetup -setdhcp 'PANTECH UML295'. When I enter these in Terminal, I ...

I'm about to migrate from Linux to OS X and I wonder if will encounter issues with development, as I probably will need lots of packages which are available in apt, yum package management systems. How ...

I am attempting to download and install both SciPy and VisualPython so that I can get them to work with each other. I've looked at the release notes for SciPy 0.14.0 and 0.15, and they appear to be ...

I have a simple "Hello world" script that I want to turn into an executable. The problem is that even though I went through the steps of declaring the path of the Python interpreter in the first list ...

I have installed many python packages via sudo pip install and some of them have messed up the system by overwriting or updating preloaded python packages. Now I want to revert all the damage done and ...

I need help in fixing segmentation fault 11 error I keep getting whenever I import something in python commandline.
I would really appreciate your help, I am not able to practice coding at home due ...

I wanted to download python on my Mac OS Mavericks. I found a blog which instructed to download it via home-brew using simple command
brew install python
But I am getting failed to download errors. ...

I would like to make a Python program executable, like in Windows, when you use a program like cx_Freeze to make Python programs become .exe. I would like to do the same for Mac, I would like to make ...

I've been able to get brew to install many packages on Snow Leopard using just the gcc library without installing all of Xcode.
I had installed Python as well as PosgreSQL from the gui installer and ...

I'd rather have my Mavericks web app use a UNIX domain socket instead of a TCP port to effect a reverse proxy. I've tried using variants of the Apache syntax for UDS in the proxies section of the web ...

I have a local process which creates an excel file using the python library openpyxl. I am not able to open the file in Numbers. When I try I receive the simple message "filename can't be opened." I ...