Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to find this path on FreeBSD but it is not working: /usr/local/lib/python2.7/dist-packages

This same path is working on Ubuntu.

Can please some tell me where I can find Python dist-packages? Actually, I am trying to find the Django folder.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Start your python and then type

import sys
print sys.path

You are likely to have something ending in site-packages or dist-packages in there.

Django probably has its own, additional, folder structure (I know that web2py does), so you might have more luck using a web page with that code and analysing the output from that.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.