# Immunity Canvas 7.26 ## ubuntu18 包内给了安装步骤,推荐使用ubuntu 18.04  首先安装依赖: ```bash #推荐在root下运行 sudo apt-get update sudo apt-get -y install python-pip sudo apt-get -y install gtk2.0 sudo apt-get -y install python-glade2 sudo apt-get -y install python-nacl python-bcrypt sudo pip install pycrypto sudo pip install pyasn1 sudo pip install diskcache==4.1.0 sudo pip install asn1tools sudo apt-get install -y python-pycurl sudo apt-get install -y libcanberra-gtk-module sudo pip install pycurl sudo pip install requests sudo pip install pygame==1.9.6 ``` 注意这里最后安装的pygame一定要指定版本是pygame要安装1.9系列版本的,但是安装说明中并未指定版本,如果使用2.x最新版本将无法启动并报错 如果源较慢可以更换国内源,我这里使用的是阿里源,如需其他的源请自行搜索替换 ``` #阿里云源 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse ``` 一路apt和pip下来没有报错,进入到工作目录进行安装  有一点要注意的是`Do you want to install python dependencies in a virtual environment (Y/n)`,选y会报错,这里我选了n,不知道是否会有影响,报错原因未知  直到最后出现`All dependencies installed`说明已成功完成安装  根据提示启动程序 ```bash #方法一根据安装提示运行 bash /home/user/Desktop/canvas/runcanvas.sh #方法二 python canvas.py ```  ## windows安装 打开包内`Windows Dependency`目录,这里给了两个依赖包,安装第一个的时候勾选上安装python2.7,用原有的可能会出问题    修改canvas.bat  进入python目录找到pip.exe,打开cmd执行`pip install pygame==1.9.6`,不进行安装的话启动的时候会报错,装它给的依赖包时感觉这个包好像没有装上,所有这里手动安装一下  运行`canvas.bat`  ## 下载地址 [mega云]: https://mega.nz/file/8o52ySwD#70Ah-b-SdSazbZbKKmXFzWYJzXa0KwQrN0x8P93ZI5Q [谷歌云盘]: https://drive.google.com/file/d/1D4Swhq7xy7oLhReDCOS1Lruhxnt37_IJ/view?usp=sharing [mega云盘 https://mega.nz/file/8o52ySwD#70Ah-b-SdSazbZbKKmXFzWYJzXa0KwQrN0x8P93ZI5Q][1] [1]: https://mega.nz/file/8o52ySwD#70Ah-b-SdSazbZbKKmXFzWYJzXa0KwQrN0x8P93ZI5Q "mega云盘" [谷歌云盘 https://drive.google.com/file/d/1D4Swhq7xy7oLhReDCOS1Lruhxnt37_IJ/view?usp=sharing][2] [2]: https://drive.google.com/file/d/1D4Swhq7xy7oLhReDCOS1Lruhxnt37_IJ/view?usp=sharing "谷歌云盘" 最后修改:2021 年 03 月 11 日 © 允许规范转载 赞 0 如果觉得我的文章对你有用,请随意赞赏