Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

4.3K
Visualizações
PIP installation for Python3 problem: Consider adding this directory to PATH

I tried to install pip in python $ python get-pip.py through terminal but had this warning in Terminal.

Python3.8
MacOS Catalina

Please help :( . I have been trying to search for answers for days

WARNING: The scripts pip, pip3 and pip3.8 are installed in '/Library/Frameworks/Python.framework/Versions/3.8/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
over 4 years ago · Santiago Trujillo
4 Respostas
Responde à pergunta

0

As of March 2022, under macOS Monterey 12.2.1, I had to use a different PATH change to reach pip:

export PATH="$PATH:/Users/<username>/Library/Python/3.8/bin"

Notes:

  1. My python installation is not at /Library/ but rather at ~/Library/, possibly because it arrived via brew - or that Monterey uses a different location.
  2. $PATH does not seem to tolerate ~/ - so one rather has to use /Users/<username>/... in at least this case.
  3. I think it's better to append rather than to prepend the updated path, because by default one might want/expect the system's main paths (/usr/bin etc.) to take precedence. On the other hand, installing e.g. python to those main paths will also take precedence over any python setup that depends on the updated path and could therefore damage it. Choose your poison.
  4. This answer is not the same as the currently-top answer because (i) the required path is different for me and (ii) the OS version is different.
over 4 years ago · Santiago Trujillo Relatório

0

You need to add to your .bash_profile or .zshrc in your system root directory:

export PATH=/Library/Frameworks/Python.framework/Versions/3.9/bin:$PATH
over 4 years ago · Santiago Trujillo Relatório

0

If you are on a Raspberry Pi (Raspbian OS) then do the following:

nano /home/pi/.profile

At the end of the file add:

# set PATH to pip
PATH="$HOME/pi/.local/bin:$PATH"

Ctrl+X, Y, Enter <-- to save changes on the .profile file

Then reboot your Raspberry Pi to apply changes.

You can check now with pip --version

over 4 years ago · Santiago Trujillo Relatório

0

You are getting this error because of the absence of the location that pip is installed from your PATH.

You need add:

export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.8/bin"

to the end of your .bash_profile, like @hoefling commented.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda