Python 3.3 安装错误 - 中止安装

Python 3.3 安装错误 - 中止安装

当我尝试升级python3版本时,出现以下错误

sudo apt-get build-dep python3.2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  autoconf blt blt-dev debhelper dh-apparmor diffstat gettext html2text
  intltool-debian libbluetooth-dev libdb5.1-dev libffi-dev libfontconfig1-dev
  libfreetype6-dev libgdbm-dev libgettextpo0 libjs-sphinxdoc libjs-underscore
  libncursesw5-dev libreadline-dev libreadline6-dev libtinfo-dev libunistring0
  libxext-dev libxft-dev libxrender-dev libxss-dev libxss1 m4 po-debconf
  python-sphinx quilt sharutils sphinx-common tcl8.5 tcl8.5-dev tk8.5
  tk8.5-dev x11proto-render-dev x11proto-scrnsaver-dev x11proto-xext-dev xvfb
0 upgraded, 42 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.6 MB of archives.
After this operation, 53.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Abort.

我为什么会被流产?我提到了这一点关联升级python3。

我想在安装 3.3 版本后删除 python 3.2

编辑1:

还尝试了Y(大写 y)。但是不起作用。

答案1

我不确定错误是什么。但现在我已经成功解决了上述问题。

我所做的是,

步骤 1)重启我的电脑

2)运行以下命令

sudo apt-get update
sudo apt-get upgrade
wget http://python.org/ftp/python/3.3.2/Python-3.3.2.tar.bz2
tar -xvjf ./Python-3.3.2.tar.bz2
cd ./Python-3.3.2
./configure --prefix=/opt/python3.3
make && make install
mkdir ~/bin
ln -s /opt/python3.3/bin/python ~/bin/py
echo 'alias py="/opt/python3.3/bin/python3"' >> .bashrc
sudo apt-get install build-essential
sudo apt-get install build-essential libncursesw5-dev libreadline-dev libssl-dev libgdbm-dev libc6-dev libsqlite3-dev tk-dev
sudo apt-get build-dep python3.2

然后它就安装好了。但仍然无法安装虚拟环境。并在此提出了一个新问题关联

相关内容