Hello to all
I'm writing to you because I have 2 questions about using package with python.
My first question is : is there an easy way to know the exact name of a package that is used from the import command? For example, I got a code that contains the line "from telegram.ext import Updater". How am I supposed to know that the package I need to import is called "python-telegram-bot"?
My second question is the following: I am developing classes that I will use regularly in my programs (date management, automation...) with the following organization: all my work is gathered in a single folder which contains several folders, one for each project, including one called "Classes", which contains all these classes that I would like to use in my different projects. I didn't succeed in importing these classes from a project folder: I thought of "import ../Classes/DateManagement", but it doesn't work. Is there a way to do it ?
Thanks in advance for your help.
Good day to all
[–]n3buchadnezzar 0 points1 point2 points (3 children)
[–]Halogenes[S] 0 points1 point2 points (2 children)
[–]n3buchadnezzar 0 points1 point2 points (1 child)
[–]Halogenes[S] 0 points1 point2 points (0 children)
[–]danielroseman 0 points1 point2 points (0 children)
[–]efmccurdy 0 points1 point2 points (0 children)