如何解决“错误的解释器:太多级别的符号链接"? [英] how to solve "bad interpreter: Too many levels of symbolic links"

查看:95
本文介绍了如何解决“错误的解释器:太多级别的符号链接"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我创建的虚拟环境中安装numpy.我使用以下一系列命令来创建和激活,然后安装numpy的本地版本(所有这些都在cd-ing到项目文件夹之后).

I am trying to install numpy in a virtual environment that I created. I used the following series of commands to create and activate and then installing a local version of numpy (all these after cd-ing into the project folder).

virtualenv venv
source venv/bin/activate
pip install numpy

但是,在执行最后一条命令后,出现此错误:

However, after the last command, I get this error:

bash: /home/fieldsofgold/Desktop/test/venv/bin/pip: /home/fieldsofgold/Desktop/test/venv/bin/python: bad interpreter: Too many levels of symbolic links

有人可以帮我解决这个问题,让我知道怎么回事吗?

Could anyone please help me solve it and let me know what could be going wrong?

我在VirtualBox中使用Ubuntu 14.04,而python版本是2.7.6.

I am using Ubuntu 14.04 in VirtualBox, and the python version is 2.7.6.

推荐答案

我遇到了同样的问题,只需使用rm -rf env删除旧的env文件即可解决此问题.然后,我使用virtualenv env创建了一个新环境,然后安装了通常为pip install -r requirements.txt的需求,然后我就能够成功运行我的应用了.

I had the same issue, and solved it simply by removing the old env file with rm -rf env. Then I created a new environment with virtualenv env, followed by installing the requirements, normally pip install -r requirements.txt, then I was able to run my app successfully.

这篇关于如何解决“错误的解释器:太多级别的符号链接"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆