mac 电脑
1. -bash:easy_install: command not found
安装 easy_install
命令: curl https://bootstrap.pypa.io/ez_setup.py -o - | python
出现图1所示错误,执行命令: sudo chown -R $USER /Library/Python/2.7
之后,再一次执行命令: curl https://bootstrap.pypa.io/ez_setup.py -o - | python

验证是否成功: 输入命令: easy_install , 出现 error: No urls, filenames, or requirements specified (see --help) ,即成功.
2. -bash: pip: command not found
安装 pip
执行 sudo easy_install pip
3. sudo easy_install pysvg 出现图2错误

方法1:执行 easy_install pysvg , 图3表示成功

方法2:先下载下来安装包,之后解压,进入到文件夹中,运行 python setup.py install 。
网友评论