Python is a programming language that is included in the standard OSX installation.

learn more… | top users | synonyms

0
votes
1answer
19 views

Need help creating Automator Service to perform similar tasks to a residual uninstall

I've been having an issue with a program I use heavily every day, where it it acts like it is recovering from a crash even when it was quit properly and all files saved. The app is FontLab Studio, not ...
3
votes
1answer
5k views

How to update Python on a Mac with Unix commands

After giving up on doing a disk partition and getting Linux, I decided to try and install Python 3.3.2 on a 32 bit Intel Core 2 Duo iMac with OS X 10.6.8 Snow Leopard. I did pretty much everything the ...
2
votes
3answers
4k views

Linking python as external build tool in Xcode 7 El Capitan

I have been using Xcode 7 as my default python editor for some time now. The usual method to run python from Xcode is given here http://stackoverflow.com/questions/5276967/python-in-xcode-7/8636301#...
3
votes
3answers
137 views

Bash script to click button on an HTML page

I'm trying to write a Bash script that opens a browser, clicks an HTML button on a webpage, and closes the browser after getting response. I need this script to be executable from within Terminal. If ...
0
votes
2answers
44 views

command line update of python3

I have both python 2.7 and 3.5.1 installed in my Mac (El Capitan). I left version 2.7 as per this recommendation. Now I would like to update version 3.5.1 to the latest one but from the command line. ...
0
votes
0answers
11 views

Macports Python IDLE 3.4 not opening

Per earlier articles (especially Python IDLE from MacPorts can't start), I've attempted to get my Python version 3.4 to work from the Macports IDLE.app but to no avail. I've already tried the ...
-5
votes
0answers
32 views

How do I forkbomb a mac using python?

How do I forkbomb a mac using python? I know how to do it on windows but I want to know how to do it on a mac.
0
votes
0answers
15 views

Anaconda - Visitor tag before user name in terminal

I am using Anaconda to install and manage Python on OSX. Since I haven't used it for quite some time I forgot the way things work and just typed: anaconda list [nameofpackage] which doesn't work,...
0
votes
1answer
46 views

How to reset the $PATH in terminal OS X El Capitan? tried previous posts but did not work [duplicate]

I accidentally messed up my $PATH. I Tried to follow the instructions from the previous similar questions but I keep having the same problem When I type: echo$ PATH, I get the following response: /...
1
vote
1answer
47 views

Run Python Script on any Mac computer

Is there a way to create an executable Python script that will be able to run on any Mac via terminal, similar to a Bash script. I need any user to be able to just double click the file, and it should ...
3
votes
0answers
72 views

homebrew - trouble upgrading openssl?

I'm on osx 10.11. (Background: I'm having trouble getting the system installed Python to use TLS 1.1.) From what I've read I need to use brew to manage Python. But I want to upgrade openssl first ...
0
votes
0answers
10 views

How do I get rid of the python dock icon when using jupyter

The python rocketship pops up in the dock when I use jupyter and run something that uses matplotlib. Is there a way to make this not happen when I'm running jupyter?
68
votes
10answers
67k views

How to use pip after the OS X El Capitan upgrade?

After the El Capitan update, I am unable to run pip install. The error I get is that the "operation is not permitted" when pip tries to create new folders while installing. creating /System/Library/...
0
votes
0answers
13 views

OS X updating 2 versions of conda

In my computer I got installed two versions of anaconda which I need for different purposes. However, the launcher has stopped working for both. While I managed to install the navigator for the ...
1
vote
2answers
113 views

AppleScript set focus on terminal window

I have a AppleScript, which changes the position and the size of the application Terminal: Like here: tell application "Terminal" set position of front window to {1, 1} set size of front ...
0
votes
0answers
33 views

Calling terminal command (pdfcrop) either directly from python or from within applescript (do shell script)

on OSX, I am using applescript to get a latex string from an application (OmniOutliner), process it via a python script that calls pdflatex and pdfcrop, and paste the final cropped pdf back into ...
0
votes
1answer
292 views

How to Install PIL in El Capitan with Pip?

I would like to install PIL by Pip but the code is unsuccessful pip install PIL Collecting PIL Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribution ...
3
votes
2answers
2k views

How can I tell Firewall to allow incoming connections for Python.app running Django

Each time I run my Django development server, I get a dialog to allow incoming connections. No matter what I do : Click Allow in the dialog box Add to the Firewall via the OS X GUI (both real and ...
1
vote
1answer
246 views

Error when installing matplotlib

I tried to install matplotlib on OS X Lion with the pip install command, but I get the following error: error: command 'clang' failed with exit status 1 Does anyone have a solution?
2
votes
1answer
29 views

How to debug .app that only successfully launches from Terminal?

Recently, my Dropbox.app stopped launching correctly. If I double-click on the app or try to launch via spotlight, the app just silently dies within a second. I see it show up in Activity Monitor, but ...
2
votes
0answers
252 views

Where are Anaconda's libraries for PYTHONPATH?

I installed Anaconda's graphical installer successfully. I configured it to Python 3.5 by conda create -n py35 python=3.5 source activate py35 % to deactive source deactivate conda install notebook ...
1
vote
0answers
113 views

Why Pip Failing to install Conda in El-Capitan?

System: El Capitan OS X 10.11.5, Python 2.7.11. I am trying to setup Python 3.x in my IPython Notebook by following the thread here. I run pip install conda where conda i.e. Anaconda but I get ...
1
vote
0answers
21 views

How to View .tex file in IPython-Notebook of OS X?

My system: OS X El Capitan 10.11.5, Python 2.7.11, IPython 4.2.0 (Jyputer), Macbook Air 2013-Mid. I would like to have Internet browser frontend for my LaTeX source codes. In my Jupyter, there is no ....
25
votes
4answers
32k views

How to get the fully resolved path of a symbolic link in Terminal?

I have a tangled mess of python installations on my laptop. I was looking at the executables in /usr/local/bin and they are all symbolic links to ../../../Library...... There's some weird behavior ...
0
votes
1answer
18 views

Python 3.4 + installed, python program that requires it still not running?

I am trying to run a python program, I installed python, 3.5 but it still says. requires Python 3.4 or newer. When ever I try and start it, am I doing something wrong? I installed python via the ...
0
votes
0answers
26 views

“config” scripts exist outside your system or Homebrew directories

I'm currently using pyenv and pyenv-virtualenv, which i've installed via Homebrew. I've added if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi to enable shims and autocompletion and if ...
0
votes
1answer
217 views

How to install specific version of python on OS X

I need to install python3.4 on my OS X. Tried to do it with brew install python3 and now I have python 3.5.1. But I need py3.4. How can I install python3.4 on my Mac?
0
votes
0answers
31 views

Spyder IDE App does not start on MacBook Pro mid 2010

So as I got a new Project in University, I was recommended to code on my Mac with Spyder which is an IDE for Python, especially for scientific computing. I am not that of a Power User so I just tried ...
1
vote
1answer
52 views

The terminal on my Mac does not work anymore after installing Python & Sublime Text

I was trying to install Python3, and Sublime Text 3 in order to learn and run Python. Unfortunately, I watched some videos on youtube and tried to follow their instructions, I did something with my ...
0
votes
2answers
48 views

How to color the Python syntax in nano

I have been using nano a lot recently to code on Python. I have been flying by on it all until this little stump, no color... it makes it harder to know if you got the syntax right and harder to code! ...
0
votes
1answer
92 views

How to clean pip installed packages on MacOSX?

I try to remove all pip installed packages from MacOSX. I'm doing it to ensure I'm using homebrew pip from now on (to avoid problems with SIP). Following zsh loop removed most of them, but some ...
0
votes
1answer
68 views

Python 2.6 and 2.7 in Mac OS X

In my /usr/bin, the following is the result of ls -al python*: -rwxr-xr-x 1 root wheel 66480 Dec 3 01:36 python -rwxr-xr-x 5 root wheel 925 Aug 22 2015 python-config lrwxr-xr-x 1 root ...
0
votes
1answer
118 views

Calling Python 3 script from AppleScript

I have a Python 3 script that I'd like to add as a Service using Automator. The idea is that I can right click on a text file, and an option will display to run my script on said file. The shebang ...
0
votes
0answers
24 views

Hide files of single extension from command line in Python

My script is as follows (and used to work but no longer does): #!/usr/bin/env python # encoding: utf-8 import os, subprocess path = "/path/to/dir/" # write your own path here hide_files = True for ...
1
vote
1answer
179 views

Mac OS X Terminal creates zero byte files

I'm a font developer. I want to merge a DSIG code into a TrueType format (TTF) font, which makes it compatible with Microsofts applications that use OpenType features. I have had this working before ...
0
votes
2answers
77 views

Python socket program taking forever to run

I tried to run following program on my Mac terminal. import socket mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) mysock.connect(('www.py4inf.com', 80)) mysock.send('GET http://www....
4
votes
3answers
363 views

Make a python program an application

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 ...
0
votes
0answers
45 views

Script, Workflow, or shortcut to change URL

My work has a proxy service that I need to use to access certain websites. Basically it adds extra parts the website url (after I've logged in)- I need to add something like proxy.go.com right before ...
0
votes
0answers
27 views

Running brew doctor shows I have 3 different python “config” scripts installed. How do I get rid of them so that I no longer receive this warning?

I have been told that there is a default Python installed on OSX, and that deleting it will cause SEVERE system issues, however, I want to clear these warnings in brew doctor. This is what the ...
1
vote
1answer
114 views

Homebrew and usr/local/include/ question

I am trying to install python3 with homebrew and I would like to know if I can delete these files. After running brew doctor, I get this message: Unexpected header files: /usr/local/include/node/...
4
votes
2answers
659 views

How best to isolate my development environment on OS X?

What is the current best practice for setting up a development environment on OS X? I recently got a new Mac with OS X 10.10, Yosemite. I'm familiar with homebrew, and from my Linux experience, ...
1
vote
0answers
84 views

How do you homebrew cleanup except to skip specified formula?

In Homebrew, to clean up outdated packages, we do brew cleanup, and currently I have about 9.5GB worth of old packages, pending for removal. However, I really do not like to remove old python ...
0
votes
0answers
277 views

Pygame Error- Deprecated Carbon Component Manager Error

I'm trying to use Pygame for school and up until now I have been using Linux and Window, but I recently tried using it on OSX, and now I'm getting this error:2016-02-29 10:40:47.196 Python[1092:16106] ...
6
votes
2answers
8k views

How to create a VPN connection via terminal?

I have a macbook pro with mavericks running. I am looking for a way to connect to a VPN network in terminal. The reason why I want to do this is that I want to write a small program in Python which ...
4
votes
3answers
16k views

What version(s) of Python are pre-installed on OS X 10.9 Mavericks?

In the past Python 2.6 was included with OS X 10.8. What version or versions come with 10.9 Mavericks?
0
votes
1answer
188 views

Issue with Homebrew when trying to parallelly install Python 3.x

I am trying to install Python v.3.x in parallel with the already installed Python v.2.7.10. I'm following the procedure explained in this tutorial which I found on YouTube. Despite it seems not an ...
1
vote
0answers
36 views

Apple Server.app not showing website

I have tried to host a Django WebApp (app.example.com) following this tutorial: http://jelockwood.blogspot.de/2013/06/running-django-webapps-with-os-x.html The WebApp will be hosted next to a ...
3
votes
1answer
197 views

TextWrangler running Python 2.7 after I removed it from my Mac

I have removed Python 2.7 from my machine, using instructions provided here: How to uninstall Python 2.7 on a Mac OS X 10.6.4? (Using the top voted/accepted answer's instructions) However, when I run ...
1
vote
1answer
98 views

Trouble Installing Pygame on Mac - error code 255 in None

I need to install pygame on my MacBook for a class, I was able to get it installed fine on my Windows machine, but the OSX installation process has been much rougher. The error I'm getting when try ...
2
votes
1answer
52 views

Force a specific version of a framework for a process

So I think it's known that OS X 10.10.5 breaks calendar server because of incompatibilities between the version of Python on 10.10.5 and a specific part of the Calendar Server. It does work in 10.10.3 ...