I had installed Python2.7 and was trying to install numpy and pandas for the same. 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
/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
apt-get -f install
apt-get install -y python-central
. Nothing seems to work out Any help/suggestions would be very helpful. I am completely new to Python.
The problem is that the postinstallation script for python-setuptools
can't find pycompile
, which compiles Python source to bytecode. pycompile
is part of the python-minimal
package. You may want to try uninstalling all the Python packages you have currently then going step-by-step, installing:
python2.7
(which will install python-minimal
, which contains pycompile
) python-setuptools
(which uses pycompile
) python-pandas
(which presumably uses python-setuptools
)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.