Die einfache Lösung ist: ändere deinen Namen;) Natürlich mache ich Witze, du solltest deinen Namen nicht ändern müssen, weil ein Werkzeug kaputt ist!
kann ich Ihre Probleme mit virtualenv
reproduzieren:
/tmp$ mkdir "Carlos Andrés Moreno"
/tmp$ cd Carlos\ Andrés\ Moreno/
/tmp/Carlos Andrés Moreno$ virtualenv kernel
New python executable in kernel/bin/python2
Also creating executable in kernel/bin/python
Traceback (most recent call last):
File "<string>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 16: ordinal not in range(128)
ERROR: The executable kernel/bin/python2 is not functioning
ERROR: It thinks sys.prefix is u'/tmp/Carlos Andr\xe9s Moreno' (should be u'/tmp/Carlos Andr\xe9s Moreno/kernel')
ERROR: virtualenv is not compatible with this system or executable
Mit virtualenvwrapper mit, ich habe kein Problem:
/tmp/Carlos Andrés Moreno$ mkvirtualenv kernel
New python executable in kernel/bin/python2
Also creating executable in kernel/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /home/wglenn/.virtualenvs/kernel/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/wglenn/.virtualenvs/kernel/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/wglenn/.virtualenvs/kernel/bin/preactivate
virtualenvwrapper.user_scripts creating /home/wglenn/.virtualenvs/kernel/bin/postactivate
virtualenvwrapper.user_scripts creating /home/wglenn/.virtualenvs/kernel/bin/get_env_details
(kernel)/tmp/Carlos Andrés Moreno$
Es scheint, sie mit dem Umgang mit Nicht-ASCII-Zeichen vorsichtiger waren . Also versuchen Sie es mit der mkvirtualenv
Hilfsfunktion von virtualenvwrapper.sh
Haben Sie versucht, '# encoding: utf-8' am Anfang Ihres Skripts? – Krishh
Ich habe in virtualenv Datei 'reload (sys) sys.setdefaultencoding (' Cp1252 ') 'und arbeiten für mich gearbeitet. Siehe http://stackoverflow.com/questions/21129020/how-to-fix-unicodedecodeerror-ascii-codec-cant-decode-byte – CarMoreno