无法安装cocos2d

2024-09-30 12:31:29 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在Ubuntu12.04上安装cocos2dx3.5

$ cd /tmp && mkdir cocos2dxInstall
$ unzip cocos2d-x-3.5.zip -d /tmp/cocos2dxInstall
$ cd /tmp/cocos2dxInstall/cocos2d-x-3.5
$ ./download-deps.py

下载所有依赖项后:

^{pr2}$

等了很长时间才编译出来,我运行:

$ cd ../..
$ cd tools/cocos2d-consle/bin
$ python install.py

不幸的是,它引发了一个错误:

Starting the installation for Cocos2D console
Downloading...
Installing...
Traceback (most recent call last):
  File "install.py", line 74, in <module>
    with TarFile.open(download_path) as tar:
  File "/usr/lib/python2.7/tarfile.py", line 1665, in open
    raise ReadError("file could not be opened successfully")
 tarfile.ReadError: file could not be opened successfully

我怎么修?在


Tags: installinpydownloadlinecdopentmp

热门问题