Skip to main content
 首页 » 编程设计

python之须藤 : unable to execute/usr/bin/easy_install: No such file or directory

2025年05月04日27kenshinobiy

我正在制作我的第一款 RPG 游戏,我想检查是否可以在完成游戏编程之前将我在 Tiled 中创建的 .tmx map 加载到 Python 中。

我使用的是 Python 3,而且我使用的是 Mac。 听说要先安装插件pytmx。我什么都试过了! pip 安装 pytmx?没用。 sudo easy_install pytmx?没用!我得到的只是

sudo: unable to execute /usr/bin/easy_install: No such file or directory 

有人告诉我必须先找到我的 python 启动器的路径目录。我如何找到它?如果我这样做了,我该如何使用它来安装 pytmx?

请您参考如下方法:

首先确定you have read the official Python package installation guide .

Then enable pip on your system with get-pip.py command .

Create virtualenv for your project将放置已安装软件包的位置。安装 Python 包时切勿使用 sudo。