奇怪的“本地"virtualenv 文件夹中的文件夹 [英] Strange "local" folder inside virtualenv folder

查看:38
本文介绍了奇怪的“本地"virtualenv 文件夹中的文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在创建我的 virtualenv 环境 (VE) 后,其中有一个名为local"的符号链接.它指向 VE 文件夹,这意味着如果你打开它,你最终会在你开始时所在的文件夹中.

After I create my virtualenv environment (VE), inside it there is a symbolic link named "local". It points to the VE folder, which means that if you open it you end up in the same folder that you started in.

我不在乎这个,但它会使 PyCharm 中的一些自动完成向导"无法使用(它们一遍又一遍地显示相同的项目,每次都具有更深的嵌套级别).

I wouldn't care about that, but it makes some autocompletion "wizards" in PyCharm unusable (they show the same item over and over again, each time with a deeper nesting level).

不知何故,我找不到有关此问题的任何提示(我使用的是 virtualenv 1.6.4).

Somehow I cannot find any hint about this problem (I'm using virtualenv 1.6.4).

问题是:那个本地"符号链接是用来做什么的?

The question is: what's that "local" symlink used for ?

推荐答案

根据 local 符号链接已作为 一个错误使用

According to the source the local symlink was put in place as a fix for a bug that affected platforms using the "posix_local" install scheme. This change was introduced in version 1.6.3.

您描述的问题已通过 github 上的此拉取请求解决.这个提议的补丁将符号链接更改为指向实际的 local 目录而不是父目录.尚未合并.此补丁已应用 所以这个问题应该在下一个版本中修复(也许是 1.7.1?).

The problem you described has been addressed by this pull request on github. This proposed patch changes the symlinks to point to an actual local directory rather than the parent directory. It is yet to be merged. This patch has since been applied so the problem should be fixed in the next release (1.7.1 perhaps?).

这篇关于奇怪的“本地"virtualenv 文件夹中的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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