module python problèmes lors de l'importation dans l'invite de commande

J'ai installé les paquets python qui je suis en mesure d'accéder à l'aide de RALENTI et pas à travers la fenêtre de shell de commande.

Voici la sortie de veille:

Python 2.7.2+ (default, Oct  4 2011, 20:03:08) 
[GCC 4.6.1] on linux2
Type "copyright", "credits" or "license()" for more information.
==== No Subprocess ====
>>> import whoosh

Voici le résultat de mon terminal:

pradeep@ubuntu:~$ python
Python 2.7.2 (default, Nov 28 2011, 23:56:33) 
[GCC 4.6.1] on linux3
Type "help", "copyright", "credits" or "license" for more information.
>>> import whoosh
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named whoosh

Comment puis-je point le terminal python IDLE python paquets? Pourquoi est-terminal affichant une "linux3" où IDLE montrant 'linux2'? Merci de m'aider avec ce problème de chemin d'accès. merci.

Update1:

Merci à tous. Comme la plupart d'entre vous l'aurez deviné, j'ai deux versions différentes installé.

Mon Inactivité Chemin montre

['/home/pradeep', '/usr/bin', '/usr/local/lib/python2.7/dist-packages/Whoosh-2.3.0-py2.7.egg', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/ubuntuone-client', '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel', '/usr/lib/python2.7/dist-packages/ubuntuone-couch', '/usr/lib/python2.7/dist-packages/ubuntuone-installer', '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol']

De mon terminal de chemin de montre:

['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux3', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages']

Comment puis-je supprimer le terminal de la version et de l'installer RALENTI version dans le terminal? Merci.

  • Vous pouvez essayer de l'exporter PYTHONPATH à l'endroit où se whoosh est installé également vérifier votre LD_LIBRARY_PATH
InformationsquelleAutor Zenvega | 2011-11-30