Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/311.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python没有';无法从dist包中找到模块_Python_Linux_Debian - Fatal编程技术网

Python没有';无法从dist包中找到模块

Python没有';无法从dist包中找到模块,python,linux,debian,Python,Linux,Debian,Debian,Python 2.7 我安装了一个模块,但是Python没有看到它,IPython也看到了。调查显示,所有外部模块都安装在\usr\local\lib\python2.7\dist软件包中 Python的sys.path 伊皮顿氏 我怎样才能解决这个问题 现在我明白了,我有两个Python 2.7安装。我怎么修理它?如果我卸载其中一个会有帮助吗?怎么做 如何使pip安装2.7.10的软件包?@AnandSKumar如果我有几个python呢?我只是注意到它们有不同的python版本

Debian,Python 2.7

我安装了一个模块,但是Python没有看到它,IPython也看到了。调查显示,所有外部模块都安装在
\usr\local\lib\python2.7\dist软件包中

Python的sys.path 伊皮顿氏 我怎样才能解决这个问题

现在我明白了,我有两个Python 2.7安装。我怎么修理它?如果我卸载其中一个会有帮助吗?怎么做


如何使
pip
安装2.7.10的软件包?

@AnandSKumar如果我有几个python呢?我只是注意到它们有不同的python版本。怎么可能?你是如何安装ipython的?@AnandSKumar dunno。使用pip或apt Get时,您是否单独安装了python(可能是较新的版本)?
Python 2.7.10 (default, Jul 11 2015, 09:39:24)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.path
['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/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']
Python 2.7.3 (default, Mar 14 2014, 11:57:14)
Type "copyright", "credits" or "license" for more information.

IPython 3.2.0 -- 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]: import sys; print sys.path
['', '/usr/local/bin', '/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/pymodules/python2.7', '/usr/local/lib/python2.7/dist-packages/IPython/extensions', '/root/.ipython']