Skip to content

Unable to import pycocotools from script #8

@mprat

Description

@mprat

I am playing with the pycocotools package and found that I was not able to import pycocotools from a python script, but COULD import it from ipython. For example:

python -c "import pycocotools"

yields

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named pycocotools

But, doing

ipython
In [1]: import pycocotools

Works fine.

Has anyone seen this problem before? I'm working in a virtual environment.

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