2013-01-15 123 views
2

我剛剛爲Mac OS下載了安裝的python 3.3。我用standard package from python.org沒有包安裝程序與Python 3.3?

我發現在Python 3.3中沒有軟件包安裝工具。沒有點,easy_install,setuptools。 看起來像引導帶問題:如何在沒有包安裝包的情況下安裝包安裝包?

我我錯過了一些明顯的東西?還是我需要採取進一步措施才能擁有包安裝程序?

+0

@ G.Kayaalp:此鏈接setuptools不支持python 3.x,只有2.x雞蛋。 –

+0

下載並運行'distribute_setup.py'。請參閱此處的說明:http://pypi.python.org/pypi/distribute –

+0

行,所以它是: '1。 curl -O http://python-distribute.org/distribute_setup.py 2. python3.3 distribute_setup.py 3. easy_install pip' 現在我可以使用pip這是現代推薦的軟件包安裝程序。 @ThomasK,如果你張貼這個答案我會接受它,謝謝。 –

回答

7

Distribute提供安裝程序腳本distribute_setup.py。因此,與捲曲的Unix-Y系統,你可以使用下面的命令:

curl -O http://python-distribute.org/distribute_setup.py 
python3.3 distribute_setup.py 
easy_install pip # easy_install is part of distribute 

如果你沒有捲曲,下載腳本的另一種方式和運行其他兩個命令。

+0

謝謝@ThomasK。 Python自on爲「包含電池」。缺少包裝安裝程序是一大缺電池。 –

+0

@PeriodicMaintenance:那麼,在Python上打包仍然是一團糟。目前正在開展工作來改進它,但它尚未及時準備好3.3。 –