About 354,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

    Jan 29, 2018 · For anyone trying to achieve this with Python 3.3+, the Windows installer now includes an option to add python.exe to the system search path. Read more in the docs.

  4. python - How to add to the PYTHONPATH in Windows, so it finds …

    Sep 13, 2010 · For anyone trying to achieve this with Python 3.3+, the Windows installer now includes an option to add python.exe to the system search path. Read more in the docs.

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

    Sep 4, 2012 · 155 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 …

  6. 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 …

  7. Python - add PYTHONPATH during command line module run

    I tried python -c"import sys;sys.path.append('/my/dir')" and then python myscript.py mycommand, but it obviously doesn't share the path from the first interpreter session with the next.

  8. Add conda to my environment variables or path? - Stack Overflow

    Jun 18, 2018 · I installed anaconda 3 though I didn't installed python, so neither pip or pip3 is working in my prompt. I viewed a few post online but I didn't find anything regarding how to …

  9. In Python script, how do I set PYTHONPATH? - Stack Overflow

    Jun 24, 2010 · You don't set PYTHONPATH, you add entries to sys.path. It's a list of directories that should be searched for Python packages, so you can just append your directories to that list.

  10. How to correctly set PYTHONPATH for Visual Studio Code

    Dec 6, 2018 · I have a situation that I believe is relatively common. I want a script to import a module from another directory. My python project is laid out as follows: ~/project/ | |---modules/ …