我正在尝试在fedora上运行virtualenv。我得到以下输出。
在同一个会话中我做了PYTHONHOME = / usr / bin / python2.7和PYTHONPATH = / lib / python2.7
Traceback (most recent call last):
File "/usr/bin/virtualenv", line 7, in <module>
from virtualenv import main
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 16, in <module>
import base64
File "/usr/lib64/python2.7/base64.py", line 9, in <module>
import struct
File "/usr/lib64/python2.7/struct.py", line 1, in <module>
from _struct import *
ImportError: No module named _struct