[root@iZbp1i0t9v2ixxhu5e9tewZ ~]# pip install virtualenvwrapper
Traceback (most recent call last):
File "/usr/bin/pip", line 7, in <module>
from pip._internal import main
ModuleNotFoundError: No module named 'pip._internal'
解决办法:
[root@iZbp1i0t9v2ixxhu5e9tewZ bin]# vim /usr/bin/pip
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
[root@iZbp1i0t9v2ixxhu5e9tewZ ~]# pip install virtualenvwrapper
-bash: /usr/bin/pip: /usr/bin/python: bad interpreter: No such file or directory
解决办法: