Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/347.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失败,但已安装包_Python_Numpy_Build_Scipy_Pip - Fatal编程技术网

Python pip失败,但已安装包

Python pip失败,但已安装包,python,numpy,build,scipy,pip,Python,Numpy,Build,Scipy,Pip,我正在尝试在Python中安装scipy: $virtualenv-venv 在venv/bin/python中新的python可执行文件 安装setuptools、pip、wheel…完成。 $source venv/bin/激活 (venv)$pip安装scipy 收集垃圾 使用缓存的scipy-0.16.1.tar.gz 收集numpy>=1.6.2(来自scipy) /home/kramer65/zommel/venv/local/lib/python2.7/site-packages/

我正在尝试在Python中安装
scipy

$virtualenv-venv
在venv/bin/python中新的python可执行文件
安装setuptools、pip、wheel…完成。
$source venv/bin/激活
(venv)$pip安装scipy
收集垃圾
使用缓存的scipy-0.16.1.tar.gz
收集numpy>=1.6.2(来自scipy)
/home/kramer65/zommel/venv/local/lib/python2.7/site-packages/pip/_-vendor/requests/packages/urlib3/util/ssl.py:90:InsurePlatformWarning:真正的SSLContext对象不可用。这会阻止urllib3正确配置SSL,并可能导致某些SSL连接失败。有关详细信息,请参阅https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
不安全平台警告
为收集的包构建控制盘:scipy
为scipy运行setup.py b列表\u控制盘
从命令/home/kramer65/zommel/venv/bin/python-c“导入setuptools;uuu文件uu=”/tmp/pip-build-6oiqvO/scipy/setup.py';exec(编译(打开(u文件uu)。读取().replace('\r\n','\n'),u文件uu,'exec')))”bdist uwheel-d/tmp/tmpdmYP0Hpip-wheel-:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/tmp/pip-build-6oiqvO/scipy/setup.py”,第253行,在
安装程序包()
文件“/tmp/pip-build-6oiqvO/scipy/setup.py”,第241行,在setup\u包中
从numpy.distutils.core导入设置
ImportError:没有名为numpy.distutils.core的模块
----------------------------------------
无法为scipy构建控制盘
未能生成scipy
安装收集的软件包:numpy、scipy
正在为scipy运行setup.py安装
已成功安装numpy-1.10.1 scipy-0.16.1
/home/kramer65/zommel/venv/local/lib/python2.7/site-packages/pip/_-vendor/requests/packages/urlib3/util/ssl.py:90:InsurePlatformWarning:真正的SSLContext对象不可用。这会阻止urllib3正确配置SSL,并可能导致某些SSL连接失败。有关详细信息,请参阅https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
不安全平台警告
这个输出首先说
未能构建scipy
,然后说
成功安装了numpy-1.10.1 scipy-0.16.1
,我不明白


有人知道它为什么会同时失败和成功吗?

您是否尝试从安装?只有创建控制盘失败。意识到这一点后,pip显然决定从setup.py文件构建。wheel是什么?
$ virtualenv venv
New python executable in venv/bin/python
Installing setuptools, pip, wheel...done.
$ source venv/bin/activate
(venv)$ pip install scipy
Collecting scipy
  Using cached scipy-0.16.1.tar.gz
Collecting numpy>=1.6.2 (from scipy)
/home/kramer65/zommel/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Building wheels for collected packages: scipy
  Running setup.py bdist_wheel for scipy
  Complete output from command /home/kramer65/zommel/venv/bin/python -c "import setuptools;__file__='/tmp/pip-build-6oiqvO/scipy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpdmYP0Hpip-wheel-:
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-6oiqvO/scipy/setup.py", line 253, in <module>
      setup_package()
    File "/tmp/pip-build-6oiqvO/scipy/setup.py", line 241, in setup_package
      from numpy.distutils.core import setup
  ImportError: No module named numpy.distutils.core

  ----------------------------------------
  Failed building wheel for scipy
Failed to build scipy
Installing collected packages: numpy, scipy
  Running setup.py install for scipy
Successfully installed numpy-1.10.1 scipy-0.16.1
/home/kramer65/zommel/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning