繁体   English   中英

在Windows 10上安装virtualenv时出现问题

[英]Problems installing virtualenv on windows 10

这是在学校里,我正在学习python,我无法继续前进,因为我需要安装一些我无法弄清楚如何开始工作的东西。

我已经安装了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.

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

在此先感谢您,如果对它的解释不够充分,我感到很抱歉。

PS:路径中的“ xe6r”是因为我的用户名(即“æ”)中不常见的字母。

我可以正常使用-我必须删除旧的Microsoft帐户并创建一个没有任何特殊字符的新用户!

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

这就是导致问题的原因。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM