Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/292.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 pip安装numpy熊猫失败?_Python_Pandas_Numpy_Pip - Fatal编程技术网

Python pip安装numpy熊猫失败?

Python pip安装numpy熊猫失败?,python,pandas,numpy,pip,Python,Pandas,Numpy,Pip,熊猫依赖于numpy,而且有一个 要安装依赖项。不管怎样,在下面的例子中,你知道为什么pip会放弃numpy吗?如果使用需求文件,也会发生这种情况 $virtualenv /tmp/pandatest $source /tmp/pandatest/bin/activate $pip install numpy pandas 然后在numpy设置的中间,熊猫设置被触发 DeprecationWarning) C compiler: /usr/bin/gcc-4.0 -DNDEBUG -g -

熊猫依赖于numpy,而且有一个 要安装依赖项。不管怎样,在下面的例子中,你知道为什么pip会放弃numpy吗?如果使用需求文件,也会发生这种情况

$virtualenv /tmp/pandatest
$source /tmp/pandatest/bin/activate
$pip install numpy pandas
然后在numpy设置的中间,熊猫设置被触发

  DeprecationWarning)
C compiler: /usr/bin/gcc-4.0 -DNDEBUG -g -O3 -m32

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -     Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c'
gcc-4.0: _configtest.c
/usr/bin/gcc-4.0 _configtest.o -o _configtest
_configtest
failure.
removing: _configtest.c _configtest.o _configtest
building data_files sources
build_src: building npy-pkg config files
Downloading/unpacking pandas
Running setup.py egg_info for package pandas
# numpy needed to finish setup.  run:

    $ pip install numpy  # or easy_install numpy
..当测试numpy时

(pandatest)$ python
Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) 
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
ImportError: No module named numpy
(pandatest)$python
Python 2.6.2(r262:716002009年4月16日09:17:39)
[GCC 4.0.1(Apple Computer,Inc.build 5250)]关于达尔文
有关详细信息,请键入“帮助”、“版权”、“信用证”或“许可证”。
>>>进口numpy
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
ImportError:没有名为numpy的模块

可能发生的是:

它无法安装“熊猫”,因此也没有安装numpy

pip的工作方式如下:

如果您尝试安装多个软件包,但其中一个软件包实际上不存在,则会中断所有安装,因此无法安装pandas,因此不会安装pandas

pip中有一个问题需要解决,我试着去解决,但不是那么简单

无论如何:

尝试分别安装每个软件包

  • 尝试安装numpy(它会工作)
  • 尝试安装熊猫(it) 不起作用,但您将能够看到它为什么没有安装)

  • 你考虑过EPDFree(www.enthunk.com)吗?否则,您将需要调试为什么NumPy出现生成问题。该问题已在版本0.7中解决。如果此问题仍然存在,请查看。唯一的解决方案似乎是首先安装numpy和其他软件包。