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

learn more… | top users | synonyms

0
votes
1answer
27 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: /...
0
votes
1answer
20 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
1answer
33 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
2answers
101 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 ...
2
votes
0answers
27 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
7 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?
0
votes
0answers
12 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 ...
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 ...
1
vote
2answers
102 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 ...
2
votes
0answers
157 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
73 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 ....
0
votes
1answer
16 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
21 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
158 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
23 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
46 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
46 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
81 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
60 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
91 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 ...
0
votes
1answer
249 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 ...
1
vote
1answer
158 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
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
91 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/...
1
vote
0answers
64 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
223 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] ...
0
votes
2answers
66 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....
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 ...
0
votes
1answer
162 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
1answer
87 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 ...
3
votes
1answer
166 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
votes
1answer
150 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
95 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
86 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
298 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
57 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 ...
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)?
2
votes
2answers
356 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 ...
1
vote
0answers
71 views

Will upgrading to 10.11 restore tkinter or do I need to reset to factory settings?

It is my understanding that OS X comes with some sort of tkinter already installed. I believe I deleted this while trying to restore matplotlib (see my current problem posted to SO). If I upgrade from ...
0
votes
0answers
48 views

TV show filename format for automatic handling by iTunes

Is there a format of filenames for TV show mp4 files, such as 'S#E# - EpisodeTitle.mp4' that iTunes detects and automatically update the metadata and sort the files accordingly in my library? I hate ...
1
vote
0answers
56 views

cv2 module not found

I installed OpenCV 2.4.X using Homebrew on my MacBook Pro OS X El Capitan, but when I try to run a program in Python 2.7.X I get this error: ImportError: No module named cv2 I have looked ...
1
vote
1answer
133 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
0answers
24 views

How to figure out which exact python app regularly results in crashes of Python.app?

I have several python (server) apps running on my Macbook. One of them regularly crashes on my system, resulting in a desktop notification popup with the message: Python quit unexpectedly. Checking ...
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 ...
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 ...
1
vote
2answers
66 views

The “python” CLI executable seems to ignore path hierarchy

I have the following strange situation on my (freshly installed El Capitan, otherwise empty) Mac. I noticed that /usr/bin/python defaults to python 2.7 (still), and the new SIP security system "...