简体   繁体   中英

"ImportError: No module named six" ubuntu 20.04

when running "src/bitmessagemain.py" in the terminal it shows

Traceback (most recent call last):
  File "src/bitmessagemain.py", line 33, in <module>
    import shared
  File "/home/otsudo/Desktop/PyBitmessage-0.6/src/shared.py", line 19, in <module>
    import highlevelcrypto
  File "/home/otsudo/Desktop/PyBitmessage-0.6/src/highlevelcrypto.py", line 16, in <module>
    from bmconfigparser import BMConfigParser
  File "/home/otsudo/Desktop/PyBitmessage-0.6/src/bmconfigparser.py", line 10, in <module>
    from six import string_types
ImportError: No module named six

I am guessing it has to do something with the virtualenv due to bitmessage still running on python 2.7 but I cant figure it out. I've made the environment for bitmessage to run in and I keep getting the error.

You probably don't have the six Python module installed,
try this:

pip install six

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM