2015-10-28 210 views
1

这是为了学校,我正在学习python,并且我不能继续下去,因为我需要安装一些我无法弄清楚如何工作的东西。在windows 10上安装virtualenv的问题

我已经安装了python 2.7.10,并且已经安装了“pip”。

我在CMD运行这个命令下管理员权限:

C:\Users\randomrandom\Downloads\virtualenv-13.1.2>python setup.py install 

这给了我:

Installed c:\python27\lib\site-packages\virtualenv-13.1.2-py2.7.egg 
Processing dependencies for virtualenv==13.1.2 
Finished processing dependencies for virtualenv==13.1.2 

这是问题所在,当我试图运行这个命令:

python -m virtualenv myenv 

我得到这个:

C:\Users\randomrandom>python -m virtualenv myenv 
New python executable in myenv\Scripts\python.exe 
Traceback (most recent call last): 
File "<string>", line 1, in <module> 
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 22:  ordinal not in range(128) 
ERROR: The executable myenv\Scripts\python.exe is not functioning 
ERROR: It thinks sys.prefix is u'c:\\users\\*****\xe6r' (should be u'c:\\users\\****\xe6r\\myenv') 
ERROR: virtualenv is not compatible with this system or executable 
Note: some Windows users have reported this error when they installed Python for "Only this user" or have multiple versions of Python installed. Copying the appropriate PythonXX.dll to the virtualenv Scripts/ directory may fix this problem. 

我试过谷歌,我已经联系我的老师,我不知道该怎么办。我怎样才能解决这个问题?

非常感谢,如果没有足够的解释,我很抱歉。

PS:路径中的“xe6r”是因为我有一个字母在我的用户名中不常见,又名“æ”。

回答

0

我得到它的工作 - 我不得不删除我的旧微软帐户,并创建一个没有任何特殊字符的新用户!

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 22:  ordinal not in range(128) 

这是什么导致了这个问题。