[Python] I have set up a virtual environment in VS Code but can't import modules

Discussão em 'Python' iniciado por Stack, Agosto 18, 2025.

  1. Stack

    Stack Membro Participativo

    All, I have:

    1. Installed VS Code
    2. Created a virtual environment (imaginatively named venv)
    3. Activated the environment
    4. Installed simple-salesforce
    5. Tried to import simple-salesforce with the following line of code: from simple_salesforce import Salesforce
    6. I get the following error: ModuleNotFoundError: No module named 'simple_salesforce'

    I've tried re-installing the module in case I'd not installed it into my virtual environment. It reported that all was well.

    I am using Windows 11.

    Any advice would be incredibly appreciated.

    Continue reading...

Compartilhe esta Página