
- 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 Mac?
To set the PYTHONPATH on Mac OS to point Python to look in other directories for module and package imports, export the PYTHONPATH variable as follows:
$ export PYTHONPATH=${PYTHONPATH}:${HOME}/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 Windows?
- How to set Java Path in Mac OS?
- How to set python environment variable PYTHONPATH on Mac?
- How to set up your python development environment on AWS?
- How to maximize plt.show() using Python on Mac?
- Installing Python on Mac OS
- How to install libxml2 with python modules on Mac?
- How to add a new entry to the PATH variable in ZSH on Mac OS in Linux
- How to install NumPy for Python 3.3.5 on Mac OSX 10.9?
- How to install Selenium WebDriver on Mac OS?
- How to set path in Java?
- How to set JAVA_HOME for Java in Mac OS?
- How to install Matplotlib on Mac 10.7 in virtualenv?
- How to Extracting MAC address using Python?
Advertisements