2012-01-11 14 views
1

私は最近Ubuntuを使い始めました。私は合理的に経験豊富なプログラマーであり、何年も前のPythonを使っています。しかし、Python 3.2では、私が.egからインストールしたいくつかの異なるプログラムのうちの1つを実行しようとすると、以下のようなエラーメッセージが表示されます。Ubuntu 11.4で多くのPythonプログラムを起動できません

ここでは、IPythonを起動しようとしています。しかし、エラーは他の人にとっても起こっている。

Traceback (most recent call last): 

File "./ipython3", line 9, in <module> 

load_entry_point('ipython==0.12', 'console_scripts', 'ipython3')() 

File "/usr/local/lib/python3.2/dist-packages/distribute-0.6.24-py3.2.egg/pkg_resources.py", line 337, in load_entry_point 
return get_distribution(dist).load_entry_point(group, name) 

File "/usr/local/lib/python3.2/dist-packages/distribute-0.6.24-y3.2.egg/pkg_resources.py", line 2279, in load_entry_point 
raise ImportError("Entry point %r not found" % ((group,name),)) 

ImportError: Entry point ('console_scripts', 'ipython3') not found 

私はこのエラーをGoogleで検索し、他のユーザーが同様の問題を抱えているが、私の知る限り、誰もが真の解決策を報告しなかったことを発見しました。

+1

私はここで間違っているかもしれませんが、私が理解しているところでは、ipythonはPythonを.NETプラットフォームで使用するためのものです。このように、私はこれがLinuxで使えるかどうかはわかりません。 – inspectorG4dget

+2

@ inspectorG4dgetをPythonだけで使うことができるかどうか見てください。[IronPython](http://ironpython.codeplex.com/)の代わりに考えていますか? – Makoto

+0

@Makato:はい。私はipythonを見て、IronPythonを考えました。 – inspectorG4dget

答えて

0

あなたはeasy_installsでディストリビューションを混在させていると思います。

おそらく、Pythonを実験して使用する最良の方法は、分離した「サンドボックス」を使用することです。

$ virtualenv -p /usr/bin/python3.2 --distribute MYPYTHON32 
Running virtualenv with interpreter /usr/bin/python3.2 
New python executable in MYPYTHON32/bin/python3.2 
Also creating executable in MYPYTHON32/bin/python 
Installing distribute... 

は、その後、あなたが一緒にプレイしたいものは何でもインストールすることができます:virtualenvのでは次のように行うことができます(それはいくつかの方法の一つである)

$ cd MYPYTHON32 
$ bin/easy_install ipython 

私は何の問題もない。

$ bin/ipython3 
Python 3.2 (r32:88445, Dec 8 2011, 15:26:58) 
Type "copyright", "credits" or "license" for more information. 

IPython 0.12 -- An enhanced Interactive Python. 
?   -> Introduction and overview of IPython's features. 
%quickref -> Quick reference. 
help  -> Python's own help system. 
object? -> Details about 'object', use 'object??' for extra details. 

In [1]: 

Documentation on virtualenvより多くのヒントを提供します。このようにインストールすることでシステムのpythonsが妨げられることはなく、サンドボックスにインストールするものを常に制御できます。