为现有Django项目设置virtualenv时出错

| 我获取了一个我想玩的项目的源代码,并且试图设置virtualenv。我运行的命令是:
. virtualenv
结果是:
__requires__: command not found
The program \'import\' can be found in the following packages:
 * imagemagick
 * graphicsmagick-imagemagick-compat
Try: sudo apt-get install <selected package>
from: can\'t read /var/mail/pkg_resources
bash: /usr/local/bin/virtualenv: line 8: syntax error near unexpected token `newline\'
bash: /usr/local/bin/virtualenv: line 8: `    sys.exit(\'
这是与Python 2.7.1一起使用的,而virtualenv与我的其他项目一起使用。     
已邀请:
        尝试使用
python virtualenv
./virtualenv
. virtualenv
将尝试导入并执行Python脚本作为shell脚本。     

要回复问题请先登录注册