I know there are multiple solutions online, but some are for windows, some are environmental variable, etc..
What is the best way?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Find your site-packages directory and create a new file called
myproj.pthInside that file, put each directory you want to add, one per line like so:
Python loads
*.pthevery time it runs, and imports all paths in each of those files.In Ubuntu, that directory can often be found at
/usr/local/lib/python2.6/dist-packages/