Skip to content

Getting "import-error" for package that exists in pipenv #1337

Closed

Description

@garyking

I've got a project, where pipenv is setup. In pipenv, the timeago package is installed, but it's not installed in my global pip.

So at the top of my file, it gives me the error: E0401:Unable to import 'timeago' even though it does actually exist, in the pipenv.

Is it possible to point pylint to the pipenv copy of all packages, so that this error does not occur? Otherwise, it would be nice to be able to do so.

Activity

  1. DonJayamanne commented on Apr 7, 2018

    @DonJayamanne

    Is it possible to point pylint to the pipenv copy of all packages, so

    Install pylint in your pipenv environment.
    Endure vscode is using your pipenv environment (check the docs on configuring python interpreters).

  2. locked as resolved and limited conversation to collaborators on Jul 11, 2018
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions