Skip to content

python-dotenv installation without cli masks python-dotenv cli #683

Description

@mxposed

I have a user-directory installation of python-dotenv[cli], and then I have a conda environment installation of python-dotenv. With the conda environment active, I cannot use dotenv command, because it errors with It seems python-dotenv is not installed with cli option.

It would be better to not install the command file at all in python-dotenv installation.

Activity

  1. kavin0x commented on Aug 19, 2026

    @kavin0x

    @mxposed

    It might be that the CLI entry point should only be installed when python-dotenv[cli] is explicitly installed. That way a normal python-dotenv install wouldn't add dotenv to PATH and cause conflicts with other environments.

    Make sure when you activate your conda enviroment, the python3, python, pip, and pip3 commands resolve to your conda enviroment. l

    Lmk.

  2. mxposed commented on Aug 20, 2026

    @mxposed
    Author

    @kavin0x I do not understand your comment

  3. kavin0x commented on Aug 20, 2026

    @kavin0x

    The issue is that the dotenv executable from your user-level python-dotenv[cli] install is being picked up instead of one associated with your conda environment.

    Could you check what these return with the conda environment activated?

    which python
    which pip
    which dotenv

    If dotenv points outside the conda environment, that's the conflict I'm referring to.

    Hope that helps

  4. mxposed commented on Aug 20, 2026

    @mxposed
    Author

    The issue is the reverse: dotenv executable from the conda environment is being picked up. All of these point to the environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions