Top "Pythonpath" questions

PYTHONPATH is an environment variable that can be used to augment the default search path for module imports in Python.

Import Error: No module named django

I am using centos linux. I had python 2.6 with django and now i upgraded to python 2.7. Python 2.6 is located in /…

python django centos pythonpath
Effect of using sys.path.insert(0, path) and sys.path(append) when loading modules

I was recently having a problem with a python ImportError, where the module was found when running on my local …

python pythonpath
set pythonpath before import statements

My code is: import scriptlib.abc import scriptlib.xyz def foo(): ... some operations but the scriptlib is in some other …

python path pythonpath
How to configure custom PYTHONPATH with VM and PyCharm?

I am using IntelliJ with the Python plugin and the Remote Interpreter feature to communicate with my Vagrant VM. It …

intellij-idea pycharm pythonpath
How do you properly determine the current script directory in Python?

I would like to see what is the best way to determine the current script directory in Python. I discovered …

python pythonpath dirname
Why use sys.path.append(path) instead of sys.path.insert(1, path)?

Edit: based on a Ulf Rompe's comment, it is important you use "1" instead of "0", otherwise you will break sys.path. …

python path python-import pythonpath
PYTHONPATH vs. sys.path

Another developer and I disagree about whether PYTHONPATH or sys.path should be used to allow Python to find a …

python python-import pythonpath sys.path
No module named django but it is installed

I have two versions of python 2.7 and 3.4 and installed django through pip. it shows in ubuntu terminal: $ pip freeze Django==1.6.11 $ …

python django ubuntu pythonpath
sys.path different in Jupyter and Python - how to import own modules in Jupyter?

In Jupyter my own little module is not loaded but in python/bpython is everything is fine. When typing import …

python jupyter pythonpath
How to correctly set PYTHONPATH for Visual Studio Code

How do I correctly set up the $PYTHONPATH variable for my workspace in VisualStudio Code? Background Information I have installed …

visual-studio-code pythonpath gnuradio