Answer the question
In order to leave comments, you need to log in
Where to put python library in ubuntu?
There is ubuntu, a python3 script and a class library imported into the script. The script is in /usr/bin/. In which folder would it be better to put a lib, so that it would not be lost when updating packages and would not interfere in /usr/bin/. Ubuntu has folders /usr/lib/python3.2/ (my version of python) and /usr/lib/python3/. As far as I understand, if you put it in the 1st folder, then when a new version of python is released, the lib will be lost. Is it ok to put it in /usr/lib/python3/? Are there better options?
Thank you.
Answer the question
In order to leave comments, you need to log in
/usr/lib/python3/site-packages/<name_of_your_lib>
Better yet, use virtualenv and don't "litter" system directories with third-party files (third-party - installed bypassing the standard ubunt package manager).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question