0

I'm trying to use settings module but is shows "ModuleNotFoundError: No module named 'settings'" and whien I try to install the module it shows "Requirement already satisfied: python-settings in c:\users\harsh\appdata\local\programs\python\python310\lib\site-packages (0.2.2)"

import settings

import settings module

asked Nov 25, 2022 at 17:41

2 Answers 2

1

try

pip install python-settings

to import

from python_settings import settings

answered Nov 25, 2022 at 17:44
Sign up to request clarification or add additional context in comments.

3 Comments

Still doesn't work it still shows "Requirement already satisfied: python-settings in c:\users\harsh\appdata\local\programs\python\python310\lib\site-packages (0.2.2)"
from python_settings import settings
This is the correct import statement, according to the docs. import settings is incorrect.
0

If you have Visual Studio, you can create a Python environment (just right-click on it, choose "add environment" and set your python version) in "solution explorer" and then right-click on your new Python environment and choose "Manage python packages...", there you can search and install what you need. If your IDE is not VS you can try to search same things there.

answered Nov 25, 2022 at 18:03

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.