Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PythonPath file
#2
PYTHONPATH is an environment variable.  In linux, those are stored in either .bash or .bash_profile or .bashrc in your home directory (/home/your_user_name).  If you're using a file browser, some of them hide files that start with ".", as those are normally "hidden" files.  If you open a console and navigate there ("cd ~"), you can see all files, including hidden ones, with "ls -a".  You can then edit that file using a text editor like nano "nano .bash".

What you add to that file will look similar to the following:

export PYTHONPATH="${PYTHONPATH}:/my/other/path"
Reply


Messages In This Thread
PythonPath file - by JohnRLaw - Oct-03-2016, 02:46 PM
RE: PythonPath file - by nilamo - Oct-03-2016, 03:32 PM
RE: PythonPath file - by micseydel - Oct-03-2016, 03:33 PM
RE: PythonPath file - by JohnRLaw - Oct-03-2016, 04:14 PM
RE: PythonPath file - by JohnRLaw - Oct-03-2016, 05:19 PM
RE: PythonPath file - by nilamo - Oct-03-2016, 05:27 PM
RE: PythonPath file - by JohnRLaw - Oct-03-2016, 06:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to set PYTHONPATH in Visual Studio Code? aupres 5 13,857 Aug-15-2023, 03:51 PM
Last Post: snippsat
  the exe file by generated by pyinstaller ,can't get the PYTHONPATH roger2020 11 10,265 Jan-14-2020, 11:07 AM
Last Post: roger2020
  setting pythonpath variable in environment variables saisankalpj 3 4,480 Dec-05-2018, 10:33 PM
Last Post: Gribouillis
  Interpreter does not consider PYTHONPATH environment variable VegetaSSJ5 2 5,082 Aug-04-2017, 07:03 AM
Last Post: VegetaSSJ5

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020