virtualenv: Too many levels of symbolic links

大兔子大兔子 提交于 2020-01-05 22:48:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!