完整堆栈跟踪:
➜ ~ pip install virtualenv
Traceback (most recent call last):
File "/usr/bin/pip", line 11, in <module>
sys.exit(main())
File "/usr/lib/python3.4/site-packages/pip/__init__.py", line 215, in main
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib64/python3.4/locale.py", line 592, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
在同一台服务器上,我成功地使用python 2.7.x运行pip install virtualenv。
现在,我已经使用curl https://bootstrap.pypa.io/get-pip.py | python3.4安装了python3.4。
➜ ~ pip --version
pip 8.1.1 from /usr/lib/python3.4/site-packages (python 3.4)
PIP卸载virtualenv也抛出相同的错误