0

so there is a package I am using that always has an import error. The way I am solving this is by adding the line

path.append('/usr/local/lib/python2.7/site-packages')

before every time I import it. How do I tell python to just check this location for packages automatically instead of manually appending the path every time? This is using CentOS and python 2.7 if that's important.

Terry Martin
  • 529
  • 8
  • 20

0 Answers0