How do I change Python path in Linux?

Thanh Hoan

New member
How do I change Python path in Linux?
Answer
Setting Path at Unix/Linux
  1. In the csh shell − type setenv PATH “$PATH:/usr/local/bin/python3” and press Enter.
  2. In the bash shell (Linux) − type export PYTHONPATH=/usr/local/bin/python3. 4 and press Enter.
  3. In the sh or ksh shell − type PATH = “$PATH:/usr/local/bin/python3” and press Enter.
 

Tìm kiếm

Back
Top