こちらの記事の内容も古くなってきましたので、改めて「Python3インストール(Mac編)」をUPしました。 こちらの記事もまだ残しておきますが、すでに古い情報となっていますのでご注意を。 0. インストール対象 以下の環境を対象とした、超初心者向けのインストールおよび設定手順です。 バージョンに特に記載のない場合、2015.11.1現在での最新バージョンを使用しています。 vagrantなどの仮想環境については使用しない前提となっています。 vagrantでのインストール方法はそのうち書きます。多分。 Mac OS X Yosemite (El Capitanは対象外としています。) Python 2.7.5 (現時点での最新版は2.7.10ですが、過去のバージョンをインストールする方法として記載) Homebrew pyenv Eclipse 4.4 Luna Pleiades PyD
ポイント デフォルトで Mac にインストールされる Python と Homebrew でインストールする Python 2、Python 3 のコマンドやパスに注意。これらは互いを上書きしない、競合しない。 Mac デフォルト Python コマンド: python パス: /usr/bin/python Homebrew Python 2 コマンド: python2 パス: /usr/local/bin/python2 Homebrew Python 3 コマンド: python3 パス: /usr/local/bin/python3 環境 MacBook Pro (Retina, 13-inch, Late 2012) OS X El Capitan バージョン 10.11.3 Homebrew 0.9.5 (git revision 0fe95; last commit 2016
はじめに 不定期連載のPython入門ですが、ちょっとPythonを触る機会があったので、久々に更新させて頂きます。 私のメインPCがMacになりつつあるので、PythonをMacにインストールしました。この手順をまとめます。 今回の内容: ・Python3.5.1をMacPCにインストールする手順 ・pyenvについて ・pipについて Python3.5.1をMacPCにインストールする手順 実はMacにはデフォルトでpythonがインストールされています。 ただしこのバージョンは少し古く、2系が入っています。 2系でももちろん構わないのですが、せっかくなので3系を入れることにしました。 バージョンを使い分けたいという時に便利なのが「pyenv」です。 $ which python [変更前のバージョン] $ pyenv global [指定バージョン] $ which python
しばらく Mac からおさらばしていたのですが、ゆえあって戻ってきました。 Python 3.3 ベースで Python 環境の構築をしたので、参考までに手順を残しておきます。 1. Homebrew で Python 3 をインストール とりあえずベースになる Python を用意します。いまならもう Python 3 を普段使い用にできるので、 Python 3 を用意します。 $ brew install python3 MacPorts でも大丈夫だと思います。 2. 自分用のデフォルト環境を作る システムの Python に直接自分が普段使うツール類をインストールするのは憚られるので、自分用のデフォルト Python を用意します。 Python 3.3 では venv が標準ライブラリにあるので、この手順で virtualenv を手動で準備する必要がなくなりました。 $ mk
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く