Skip to content

OSX conda install, error on compiled API version #2564

Description

@stsievert

Happened right after I tried to install via conda on OSX.

↪  conda install pytorch torchvision -c soumith
[...]
# All requested packages already installed.
# packages in environment at /Users/scott/anaconda:
#
pytorch                   0.2.0                py36_4cu75    soumith
torchvision               0.1.9                    py36_1    soumith
↪  python
[...]
>>> import torch
RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/scott/anaconda/lib/python3.6/site-packages/torch/__init__.py", line 53, in <module>
    from torch._C import *
ImportError: numpy.core.multiarray failed to import
>>> import torch
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/scott/anaconda/lib/python3.6/site-packages/torch/__init__.py", line 53, in <module>
    from torch._C import *
ValueError: module functions cannot set METH_CLASS or METH_STATIC
>>> import numpy as np
>>> np.__version__
'1.12.1'

Activity

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