安装python File "/usr/bin/pip", line 11, in sys.exit(main()) File "/usr/lib/python3.4/...

 
$ uname -a
    Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux
    $ python --version
    Python 2.7.9
    $ pip --version
    pip 8.1.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
    $ unset LC_ALL
    $ pip install virtualenv
    Traceback (most recent call last):
      File "/usr/local/bin/pip", line 11, in 
        sys.exit(main())
      File "/usr/local/lib/python2.7/dist-packages/pip/__init__.py", line 215, in main
        locale.setlocale(locale.LC_ALL, '')
      File "/usr/lib/python2.7/locale.py", line 579, in setlocale
        return _setlocale(category, locale)
    locale.Error: unsupported locale setting
    $ export LC_ALL=C  这里是重点   
    $ pip install virtualenv

 

转载于:https://www.cnblogs.com/gaohj/p/9989118.html

你可能感兴趣的:(安装python File "/usr/bin/pip", line 11, in sys.exit(main()) File "/usr/lib/python3.4/...)