<p>我试图用pip在centos7上用virtualenvwrapper来设置virtualenv,但得到一个UnicodeDecode错误。在</p>
<p>具体步骤:</p>
<ul>
<li>安装CentOS7</li>
<li>通过get安装pip-点对点在</li>
<li>sudo pip安装virtualenv</li>
<li>sudo pip安装virtualenvwrapper</li>
<li>export WORKON_HOME=$HOME/.virtualenvs</li>
<li>源/usr/local/bin/virtualenvwrapper.sh在</li>
</ul>
<p>当我运行<code>mkvirtualenv test</code>
我明白了</p>
<pre><code> New python executable in test/bin/python
Traceback (most recent call last):
File "<string>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 11 ordinal not in range(128)
ERROR: The executable Blog/bin/python is not functioning
ERROR: It thinks sys.prefix is u'/home/blaw/\xac./virtualenvs' (should be u'/home/blaw/\xac./virtualenvs/Blog')
ERROR: virtualenv is not compatible with this system or executable
</code></pre>
<p>我做错什么了?在</p>