Best Answer: How Do I Change the Default Python Path in Linux?
Contents

How do I change Python path in Linux?

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.

How do I change the default path in Python?

How to set python path in windows

  1. Right-click ‘My Computer’.
  2. Select ‘Properties’ at the bottom of the Context Menu.
  3. Select ‘Advanced system settings’
  4. Click ‘Environment Variables…’ in the Advanced Tab.
  5. Under ‘System Variables’: Click Edit.
Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest