(myenv) (base) wchoi@Wonjaes-MacBook-Pro-2 AI_IDE-newdesign % python server.py
Traceback (most recent call last):
File "/Users/wchoi/Desktop/AI_IDE-newdesign/server.py", line 6, in <module>
import spacy
File "/Users/wchoi/Desktop/AI_IDE-newdesign/myenv/lib/python3.9/site-packages/spacy/__init__.py", line 6, in <module>
from .errors import setup_default_warnings
File "/Users/wchoi/Desktop/AI_IDE-newdesign/myenv/lib/python3.9/site-packages/spacy/errors.py", line 3, in <module>
from .compat import Literal
File "/Users/wchoi/Desktop/AI_IDE-newdesign/myenv/lib/python3.9/site-packages/spacy/compat.py", line 4, in <module>
from thinc.util import copy_array
File "/Users/wchoi/Desktop/AI_IDE-newdesign/myenv/lib/python3.9/site-packages/thinc/__init__.py", line 2, in <module>
import numpy
File "/Users/wchoi/Desktop/AI_IDE-newdesign/myenv/lib/python3.9/site-packages/numpy/__init__.py", line 152, in <module>
from . import random
File "/Users/wchoi/Desktop/AI_IDE-newdesign/myenv/lib/python3.9/site-packages/numpy/random/__init__.py", line 180, in <module>
from . import _pickle
File "/Users/wchoi/Desktop/AI_IDE-newdesign/myenv/lib/python3.9/site-packages/numpy/random/_pickle.py", line 1, in <module>
from .mtrand import RandomState
File "mtrand.pyx", line 1, in init numpy.random.mtrand
File "bit_generator.pyx", line 38, in init numpy.random.bit_generator
ImportError: cannot import name randbits
This is what I faced with. I reinstalled all of dependencies, pip, python, numpy, spacy …etc but still shows the randbits import error. It seems like randbits file does not exist in my laptop or has a filename conflict, but I am not sure, I want to do a double check with you guys.
New contributor
Wonjae Choi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.