问题
I'm using virtualenv
and developing some pyramid applications. When I try to use
../bin/python setup.py
I get:
bash: ../bin/python/: Too many levels of symbolic links
What am I doing wrong?
回答1:
Hi~ i just encountered the same issue as you, i believe if you remove the 'env' file, and activate virtualenv again, this problem will be solved. It may not be the best solution but it could be a quick method.
回答2:
You've omitted a space from your command.
From the directory in which the file setup.py
is located, the command should be $VENV/bin/python setup.py
.
Although Pyramid installation documentation recommends virtualenv, it does not recommend activating the virtualenv. Instead it is much preferable to set an environment variable to the path of the virtualenv for your project.
export VENV=~/projects/myproject/env
Which then makes it easy to set up a virtualenv.
virtualenv $VENV
And correctly execute commands from any directory in your project.
$VENV/bin/python setup.py
来源:https://stackoverflow.com/questions/31334496/virtualenv-too-many-levels-of-symbolic-links