New answers tagged

0

Unfortunately, there isn't another way from the command line other than installing Homebrew, an unofficial package manager for macOS and then typing brew install python3. This method does pose some issues. When installing Python via Homebrew, it does not remove any old version of Python (for compatibility reasons). This means old versions could be sitting ...


0

First, run PATH=/bin:/usr/bin in Terminal. Then open ~/.bash_profile (in terminal, nano/vim/favorite editor ~/.bash_profile) or open Finder, then press Shift+Command+G and paste it in. Then you can comment out the path line. There is no need to delete .bash_profile in its entirety, and it isn't recommended.


0

You can use PyInstaller, which is a free program that does the exact thing you want. As the official website says: PyInstaller is a program that freezes (packages) Python programs into stand-alone executables, under Windows, Linux, Mac OS X, FreeBSD, Solaris and AIX. Its main advantages over similar tools are that PyInstaller works with Python 2.7 and 3....


1

Use cURL (curl). It's a command line tool that transfers data using various protocols including HTTP. The beauty here is that you don't need a GUI browser; everything will be handled at the command line level. The "button" you want to press will be located in some sort of form. You can use the Developer Tools in Chrome or Firebug in Firefox to see the ...


2

You should consider using opensource Selenium. With a Selenium IDE plugin to Firefox you can record your actions (opening a page, clicking on a button), replay these songs, and generate Python or Ruby scripts rich you can customise and call from CLI. Sample script testing default Apache availability might look like this: #!/usr/local/bin/python DEST_URL='...


0

I have python3 installed on my mac while the original python2.7 comes with the OSX. So whenever I want to invoke the python3, i just type $python3 .... Maybe you should try $python3 get-pip.py, this works for me when I have almost the same problem with you.


0

With the help of javadevg and the answer of AppleScript get active Application, i created the following solution: tell application "Terminal" activate set position of front window to {1, 1} set size of front window to {111, 111} end tell tell application "System Events" set frontmostProcess to first process where it is frontmost set visible of ...


1

activate application "Terminal" tell application "Terminal" set position of front window to {1, 1} set size of front window to {1, 1} end tell tell application "System Events" to keystroke "your message here\rexit\r" Additionally you can get help from AppleScript get active Application to put focus back on original application


2

This is because PIL is not setuptools compatible (https://mail.python.org/pipermail/image-sig/2010-August/006480.html) and has as such probably never been installable through pip. I think in general it should be considered deprecated in favor of Pillow which is an actively developed compatible fork of PIL. So what you want to do is pip install Pillow, and ...


-2

matplotlib is part of the python 2.7 installed with El Capitan, no need to install it.


0

You could start by tracing the executable: % sudo dtruss /Applications/Dropbox.app/Contents/MacOS/Dropbox It may be loading the wrong python, etc. Sometimes a trace will give you a clue as to where your app is crashing, esp. if you only have an executable. You can also look at how the executable was linked, maybe it's finding the wrong version of a ...



Top 50 recent answers are included