About 345,000 results
Open links in new tab
  1. Adding Python to PATH on Windows - Stack Overflow

    I've been trying to add the Python path to the command line on Windows, yet no matter the method I try, nothing seems to work. I've used the set command, I've tried adding it through …

  2. python - Permanently add a directory to PYTHONPATH? - Stack …

    Aug 4, 2010 · Whenever I use sys.path.append, the new directory will be added. However, once I close python, the list will revert to the previous (default?) values. How do I permanently add a …

  3. How do I add Python to the Windows PATH? - Super User

    Select PATH in the System variables section Click Edit Add Python's path to the end of the list (the paths are separated by semicolons). For example: …

  4. adding directory to sys.path /PYTHONPATH - Stack Overflow

    The problem is that if I use sys.path.append(mod_directory) to append the path and then open the python interpreter, the directory mod_directory gets added to the end of the list sys.path. If I …

  5. Why would I add python to PATH - Stack Overflow

    Jan 20, 2016 · PATH is an environment variable on linux machines, if you add python to it, you will be able to call it simply by "python" or "python3". If you dont add, you will have to use the …

  6. Permanently adding a file path to sys.path in Python

    Sep 4, 2012 · I had a file called example_file.py, which I wanted to use from various other files, so I decided to add example_file.py to sys.path and import this file in another file to use the file.

  7. macos - Add to python path mac os x - Stack Overflow

    Aug 2, 2010 · Modifications to sys.path only apply for the life of that Python interpreter. If you want to do it permanently you need to modify the PYTHONPATH environment variable:

  8. windows - Git Bash won't run my python files? - Stack Overflow

    Apr 5, 2014 · It adds the python installation folder and script folder to the Windows path. When starting the GIT Bash command prompt, it have included it in the linux PATH variable.

  9. How can I add a default path to look for python script files in?

    May 15, 2016 · 3 That's not how running scripts works. Modify your %PATH% environment variable to contain the directory that contains the script in question, then run the script from the …

  10. Visual Studio Code - How to add multiple paths to python path?

    Jan 5, 2017 · So to add your external libraries to the path, create a file named .env in your workspace folder and add the below line to it if you are using Windows: …