LoginSignup
8
8

More than 5 years have passed since last update.

AnacondaでPython3.3

Last updated at Posted at 2013-11-02

AnacondaのサポートしているPythonのバージョンに3.3が含まれていたのでアップデートをしてみた。
やり方は公式に書いてある通りにやればいけた。

condaのアップデート

conda update conda

といきなりここ公式には書いてないけれどこっちで見つけた。これをやらないとアクティベートスクリプトがエラーを返してきてハマる。

envをpython33に変更

 conda create -n py33 python=3.3 anaconda

しばらく時間かかる。

PATHを通す

source ~/anaconda/bin/activate py33

使ってみる

(py33) ~
% python
Python 3.3.2 |Anaconda 1.7.0 (x86_64)| (default, Aug  5 2013, 15:07:24) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

NLTKを使ってみる

>>> import nltk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'nltk'
>>>

あれ。どうやらanacondaのpy33環境にはnltkが含まれていないっぽい。
一応本家はpython3.xをサポートし始めたみたいだけどまだalpha版。
anacondaリポジトリにはまだ組み込まれていないのか。残念。

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8