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 in the Csh Shell − Type Setenv Path “$Path: /Usr/Local/Bin/Python3” and Press Enter...
Contents
How do I change Python path in Linux?
Setting Path at Unix/Linux
- In the csh shell − type setenv PATH “$PATH:/usr/local/bin/python3” and press Enter.
- In the bash shell (Linux) − type export PYTHONPATH=/usr/local/bin/python3. 4 and press Enter.
- 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
- Right-click ‘My Computer’.
- Select ‘Properties’ at the bottom of the Context Menu.
- Select ‘Advanced system settings’
- Click ‘Environment Variables…’ in the Advanced Tab.
- Under ‘System Variables’: Click Edit.