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

learn more… | top users | synonyms

0
votes
0answers
6 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?
63
votes
10answers
59k 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/...
2
votes
3answers
3k 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#...
0
votes
0answers
11 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
94 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
26 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
230 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
245 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
28 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
138 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
65 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
20 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 ....
24
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
15 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
20 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
133 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
21 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
42 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
44 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
76 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
54 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
90 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
22 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
153 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
65 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
341 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
35 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
24 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
83 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
606 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
57 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
213 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
153 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
156 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
85 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
51 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 ...
1
vote
1answer
129 views

How do I tell the MacPorts Python to look in /opt/local/lib for dylibs?

I'm running a Python script with the MacPorts version of Python (2.7), i.e, I've run: port select --set python python27 However, when I run my script, it can't find a dylib in /opt/local/lib: ...
0
votes
1answer
4k views

Can't create virtualenv

I want to create a virtualenv but it doesn't find the command. $ virtualenv venv -bash: virtualenv: command not found It is installed: $ pip install virtualenv Requirement already satisfied (use --...
-1
votes
1answer
143 views

Can’t install scikit-learn for python on Mac - wrong directory

I’m tearing my hair out! (Not much left!) When I run easy_install -U scikit-learn as admin I get the following error: Admin$ easy_install -U scikit-learn error: can't create or remove files in ...
0
votes
0answers
93 views

use python to mount smb share from osx including special characters in the password field

I've seen plenty of scripts for mounting a smb share in osx via terminal and python. I'm working toward the python solution using the answer at the end of this similar question. The only issue I ...
1
vote
1answer
84 views

Cannot bind 127.0.0.123 to tcp socket python

I'm trying to learn TCP sockets for my project. I will be using them to transfer files between computers. The server client combo copied from some tutorial runs fine as long, as the ip I'm trying to ...
0
votes
0answers
296 views

I get a permission denied error when trying to run pip

I am trying to run the following command: pip install -U pip setuptools However, I get this error output: Requirement already up-to-date: pip in /Library/Python/2.7/site-packages Collecting ...
0
votes
0answers
84 views

Google Earth Pro randomly crashing on El Capitan (“EXC_BAD_ACCESS (SIGSEGV)”)

And I do mean randomly, sometimes I do the exact same thing and I can't reproduce this error, but it happens enough to make me look like an amateur at work sometimes. It didn't do this in Mavericks I ...
3
votes
1answer
54 views

Python-based app requires bypassing 'unknown developer' warning

Using a Python utility called py2app, I've built a distributable .app. from a Python-based project. It launches fine (when double-clicked) on my own machine, yet when tried elsewhere (other users on ...
2
votes
2answers
331 views

pygame installed through homebrew does not work?

I ran brew install pygame, it installed it together with all the dependencies. Python v2.7.10 / OS X version 10.11.2 Whenever I import pygame in a script it says this Traceback (most recent call ...
0
votes
0answers
34 views

Upgrading from Python to 2.7.10 to 2.7.11 on OSX

How can I upgrade Python from 2.7.10 to 2.7.11 on OSX (Yosemite)?