简体   繁体   English

我正在尝试在Ubuntu 13.10上为Python3.3安装熊猫

[英]I am trying to install pandas for Python3.3 on Ubuntu 13.10

I had installed Python2.7 and was trying to install numpy and pandas for the same. 我已经安装了Python2.7,并试图安装numpy和pandas。 However when I saw Python3.3 was already there, I removed the 2.7 and related packages and installed numpy for python 3. But when I tried installing pandas I started getting this error 但是,当我看到Python3.3已经存在时,我删除了2.7和相关软件包,并为python 3安装了numpy。但是当我尝试安装熊猫时,我开始遇到此错误

/var/lib/dpkg/info/python-setuptools.postinst: 6: /var/lib/dpkg/info/python setuptools.postinst: pycompile: not found
dpkg: error processing python-setuptools (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 python-setuptools
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried a bunch of things like 我尝试了很多类似的东西

  1. apt-get -f install
  2. apt-get install -y python-central . apt-get install -y python-central Nothing seems to work out 似乎什么都没有解决

Any help/suggestions would be very helpful. 任何帮助/建议都将非常有帮助。 I am completely new to Python. 我对Python完全陌生。

The problem is that the postinstallation script for python-setuptools can't find pycompile , which compiles Python source to bytecode. 问题是python-setuptools的安装后脚本找不到pycompile ,后者将Python源代码编译为字节码。 pycompile is part of the python-minimal package. pycompilepython-minimal软件包的一部分。 You may want to try uninstalling all the Python packages you have currently then going step-by-step, installing: 您可能想尝试卸载当前拥有的所有Python软件包,然后逐步进行安装:

  1. python2.7 (which will install python-minimal , which contains pycompile ) python2.7 (将安装python-minimal ,其中包含pycompile
  2. python-setuptools (which uses pycompile ) python-setuptools (使用pycompile
  3. python-pandas (which presumably uses python-setuptools ) python-pandas (大概使用python-setuptools

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM