开发者

Error setting up virtualenv for existing Django project

I grabbed the source for a project I want to play with and I'm trying to setup virtualenv. The command I run is:

. virtualenv

which results in:

__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_resou开发者_运维百科rces
bash: /usr/local/bin/virtualenv: line 8: syntax error near unexpected token `newline'
bash: /usr/local/bin/virtualenv: line 8: `    sys.exit('

This is with Python 2.7.1 and virtualenv works with my other projects.


Try python virtualenv or ./virtualenv instead. . virtualenv will try to import and execute a Python script as a shell script.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜