/usr/local/share/python no longer needed in PATH
Closed this issue · 5 comments
See: Homebrew/legacy-homebrew@49d04cb
This results in an unnecessary warning in brew doctor
:
Warning: /usr/local/share/python is not needed in PATH.
So, in Python section, the following needs some revision:
Executable scripts from Python packages you install will be put in /usr/local/share/python, so let's add it to the $PATH. To do so, we'll create a .path text file in the home directory (I've already set up .bash_profile to call this file):
$ cd ~
$ subl .path
And add these lines to .path:
PATH=/usr/local/share/python:$PATH
export PATH
Save the file and open a new terminal to take the new $PATH into account (everytime you open a terminal, .bash_profile gets loaded).
I removed the following lines from under .path
PATH=/usr/local/share/python:$PATH
export PATH
Restarted terminal and no warnings were received.
@mukeshtiwari1987 this repo seems unmaintained, I usually go to its fork at https://github.com/jfrazelle/mac-dev-setup whenever I need to setup a new Mac or refer something in the configuration.
Search mac os dev set up on google and https://github.com/nicolashery/mac-dev-setup is the first link. what can be done?
Thanks for pointing this out! I'm working on v2.0
of this doc (https://github.com/nicolashery/mac-dev-setup/tree/2.0), and will make sure to fix the Python section with your recommendation.
I pushed an update to this guide bffbe4b, and I now explain how to install Python via pyenv
, so that should fix this issue.