Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have successfully installed the bitarray package, because I can find it after the command: pip list.

But when I try to import it I get :

>>> from bitarray import bitarray

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    from bitarray import bitarray
ModuleNotFoundError: No module named 'bitarray'

What can I try to solve it ?

I'm using Ubuntu 18.04.5 .


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
907 views
Welcome To Ask or Share your Answers For Others

1 Answer

You can install package as python3 -m pip install bitarray. May be when you did pip install bitarray, it install your package for python2.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...