Forum in maintenance, we will back soon 🙂
Question about modules in the helpers.py file
In the helpers.py from your repository, several modules are listed (ex importtiktoken , importopenai , importnewspaper); where are they located?
Â
Thank you.
Do you mean where the modules are used?
@evelyne-skorczynski the items you mention are modules that you need to install with pip. Have you gone through the basics of the training?
pip install tiktoken pip install openai pip install newspaper3k
Then you use these in code and other packages.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
These are modules we install with pip as @ssadvisor mentioned.
It is not my own modules, you just import and use after you install on your computer.Â
if you wanna know the location on your computer, it varies by operating system and Python version:
- Windows: Typically in
C:\PythonXX\Lib\site-packages
(XX represents the Python version). - macOS/Linux: Usually in
/usr/local/lib/pythonX.X/site-packages
or/usr/lib/pythonX.X/site-packages
.
You can view all paths where Python looks for modules by running this in your Python interpreter:
import sys print(sys.path)