cztrio.blogg.se

Install python 3 mac with terminal
Install python 3 mac with terminal











install python 3 mac with terminal
  1. #Install python 3 mac with terminal how to#
  2. #Install python 3 mac with terminal mac osx#

To install Eclipse, go to, choose Mac OSX (Cocoa) and download Eclipse Classic 4.2.1. To do so, we’re going to install Eclipse and PyDev.

install python 3 mac with terminal

It can be also useful, but not mandatory, to use a complete IDE with Python autocompletion, debugging facilities and so on. Now that we have Python 3 installed, we can use any good text editor to write some code. No error, everything is OK! Note that, with Homebrew, Python 3 packages are installed under /usr/local/lib/python3.3/site-packages. Then launch the python3 interactive console and test that SQLAlchemy is installed now $ python3 If we want to install SQLAlchemy for instance, type pip3 install sqlalchemy Once via pip for Python 2.7 and once via pip3 for python 3.3. If you want a python package x for both pythons, you need to install it twice. The two package managers don’t share their site-package directory. You should pay attention to which pip you are using: Now that we have Python 3 installed on our system, we are going to install a package. It’s interesting to note that python launch the default 2.7 python interpreter and python3 is launching the 3.3 python interpreter. Type "help", "copyright", "credits" or "license" for more information. Once Python 3 is installed, we’re going to check that is it ready to use or our system by launching the interactive console python3 To install Python 3 with Homebrew, simply type brew install python3 You can have more information on the Homebrew wiki. Type brew doctor and if the output is Your system is raring to brew, everything is ok. Installing / Uninstalling brew install FORMULAįor example, brew install imagemagick will install ImageMagick on your OS, brew uninstall ack will uninstall ack. Updating brew and formula (ie tools/components you have installed) brew update Once installed, just type brew in a terminal to check that Homebrew is installed. Installing Homebrew is very simple open a Terminal window and type ruby -e "$(curl -fsSkL /mxcl/homebrew/go)" By default, it’s on /usr/local but you can change to whatever you like. What I really like with Homebrew is that everything is installed on a directory that is not conflicting with the system directories. Homebrew, originally started by Max Howell, simplify the installation of open source tools (like ImageMagick, wget, ack etc.) that are not by default on OSX. There are many package installers on OSX but I find Homebrew very pleasant, simple and convenient.

#Install python 3 mac with terminal how to#

Here is a quick tour on how to setup an effective dev environment for Python 3 on your beloved OSX.













Install python 3 mac with terminal