

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to set your python path on Windows?
To set the PYTHONPATH on windows to point Python to look in other directories for module and package imports, go to:
My Computer > Properties > Advanced System Settings > Environment Variables
Then under system variables edit the PythonPath variable. At the end of the current PYTHONPATH, add a semicolon and then the directory you want to add to this path:
C:\Python27;C:\foo
In this case, are adding the foo directory to the PYTHONPATH. Note that we are appending it and not replacing the PYTHONPATH's original value. In most cases, you shouldn't mess with PYTHONPATH. More often than not, you are doing it wrong and it will only bring you trouble.
- Related Questions & Answers
- How to set your python path on Linux?
- How to set your python path on Mac?
- How to Set Temporary Path of JDK in Windows?
- How to Set Permanent Path of JDK in Windows?
- How to set python environment variable PYTHONPATH on Windows?
- How to Lock Your Hard Drive on Windows OS?
- How to set up your python development environment on AWS?
- How to Install Python on Windows?
- Adding MySQL to Windows Path
- Installing Python on Windows
- How to set JAVA_HOME environment variables on Windows OS in Java?
- How to set path in Java?
- IDE for Python programming on Windows
- How do I set up C/C++ on Eclipse in Windows?
- Upgrade your computer for free to windows 10
Advertisements