Pythonpath not updating sys path

This is unfortunate, because I have a module '' in the fastai folder.

First, let's clarify the difference between modules and packages. They both serve the same purpose which is to organize code, but they each provide slightly different ways of doing that.A module can be thought of as a self-contained package, and a package is like a module that is separated out across multiple files.It really depends on how you want to organize your code and how large your project is.In this post I first describe how Python finds packages, and then I'll finish with the discovery I made regarding the default Python that ships with Ubuntu and how it differs from vanilla Python in how it finds packages.Python imports work by searching the directories listed in /usr/lib/python2.7 /usr/lib/python2.7/plat-x86_64-linux-gnu /usr/lib/python2.7/lib-tk /usr/lib/python2.7/lib-old /usr/lib/python2.7/lib-dynload /usr/local/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages The file attribute is not present for C modules that are statically linked into the interpreter; for extension modules loaded dynamically from a shared library, it is the pathname of the shared library file.

Leave a Reply