如何安装 Visual Python?

如何安装 Visual Python?

我是 Linux 新手,但我决心在运行 Ubuntu 12.04 的笔记本电脑上安装我最喜欢的应用程序。我刚刚安装了 Cinnamon。

我正在尝试安装 Visual Python,它需要 Python 2.7。我按照 VPython 网站上的说明操作,但 Wine 应用程序没有从 Python .msi 文件中提取任何内容。从第一行

wine start /i python-2.7.5.amd64.msi /qn TARGETDIR=~/Python27 ALLUSERS=1

它说fixme:storage:create_storagefile Storage share mode not implemented.

我创建了 Python27 目录,所以我知道它存在并且是空的。我知道 Ubuntu 已经有 Python 2.7,所以我只是尝试运行 VPython.exe 文件,但它说"This program can only be installed on versions of Windows designed for the following processor architectures: x64."我的东芝卫星有一个 64 位处理器。

有人可以帮忙吗?

答案1

您已经Python 2.7安装完毕(默认情况下应该如此)。只需在终端中运行以下命令:

sudo apt-get install python-visual
sudo apt-get install libgtkglextmm-x11-1.2-dev

然后尝试运行任何.py需要的脚本python visual。它应该可以正常运行。您不需要使用.msi安装程序。

相关内容