Skip to content

Forum in maintenance, we will back soon 🙂

Question about modu...
 
Notifications
Clear all

Question about modules in the helpers.py file

4 Posts
4 Users
3 Reactions
17 Views
Evelyne Skorczynski
(@evelyne-skorczynski)
Posts: 3
Active Member Customer
Topic starter
 

In the helpers.py from your repository, several modules are listed (ex importtiktoken , importopenai , importnewspaper); where are they located?

 

Thank you.

 
Posted : 12/30/2023 11:01 am
Topic Tags
(@husein)
Posts: 550
Member Moderator
 

Do you mean where the modules are used?

 
Posted : 12/30/2023 12:19 pm
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@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

 
Posted : 12/30/2023 3:16 pm
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

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)
 
Posted : 12/31/2023 3:10 pm
Share:
[the_ad_group id="312"]