Вопрос

I have a problem where my PYTHONPATH variable always has a blank value. I can fix it temporarily like this: export PYTHONPATH=$(python -c 'import sys;print ":".join(sys.path)') but is there a more permanent way to do this?

Это было полезно?

Решение

You could put that line in your ~/.bash_profile file, at which point it is run each time a new terminal is opened. (See here for more about this file).

Другие советы

  1. put the path setting in /etc/profile, it will impact to all users.
  2. put the path in your home directory ~/.profile, ~/.bashrc, ~/kshrc (depand on your shell).
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top