[英]OSX - can't find what's adding python to my path
I've just upgraded to OSX Yosemite. 我刚刚升级到OSX Yosemite。 I'm running
brew doctor
and among the zillions of warnings it generates is: 我正在做
brew doctor
,它产生的警告不计其数:
Warning: /usr/local/share/python is not needed in PATH.
Formerly homebrew put Python scripts you installed via `pip` or `pip3`
(or `easy_install`) into that directory above but now it can be removed
from your PATH variable.
Python scripts will now install into /usr/local/bin.
You can delete anything, except 'Extras', from the /usr/local/share/python
(and /usr/local/share/python3) dir and install affected Python packages
anew with `pip install --upgrade`.
I've looked carefully everywhere, and I can't find what is adding /usr/local/share/python to my path. 我到处都仔细看过,找不到在目录中添加/ usr / local / share / python的内容。 My .bash_profile contains no mention of python.
我的.bash_profile没有提及python。 /private/etc/paths.d contains only a file called "git".
/private/etc/paths.d仅包含一个名为“ git”的文件。 I did find an instance of /usr/local/share/python in /private/etc/paths, but I deleted that, but when I start a new terminal after that and rerun
brew doctor
I still get the warning. 我确实在/ private / etc / paths中找到了/ usr / local / share / python的实例,但是我删除了它,但是当我在那之后启动一个新终端并重新运行
brew doctor
我仍然收到警告。 Can anyone suggest how I can stop this? 任何人都可以建议我如何阻止这种情况? It's driving me insane!
它让我发疯!
Im not able to comment, and while I don't have an answer, this might help through process of elimination, or potentially help your future problem solver. 我无法发表评论,虽然我没有答案,但这可能有助于消除过程,或者可能对您将来的问题解决者有所帮助。
etc/profile
; etc/profile
? any sign in that file? ~/.profile
it could be in? ~/.profile
? echo $PATH
, any sign of said path? echo $PATH
,表示路径的任何符号? export
, or declare
(with no options)? export
或declare
(没有选项)呢? Probably not what you want to hear, but I always do a fresh install rather than upgrade for fear of issues like this. 可能不是您想听到的,但我总是进行全新安装而不是升级,因为担心像这样的问题。 Doing so would most likely solve your issues;
这样做很可能会解决您的问题; all zillion of them.
全部不计其数。 I know I haven't had any issues, or even a single warning from Homebrew, since I moved to Yosemite.
我知道自从我搬到优胜美地以来,没有任何问题,甚至没有来自Homebrew的警告。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.