使用virtualenv进行Flask安装错误

时间:2014-12-02 23:41:02

标签: python flask virtualenv

我想设置烧瓶,所以我按照Flask安装网站上的说明操作。当我使用“virtualenv venv”时出现错误。同时版本的python是2.7.6

semihy@semihy-Inspiron-5537:~/Masaüstü/flaskproject$ virtualenv env
New python executable in env/bin/python
Traceback (most recent call last):
  File "<string>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 17: ordinal not in range(128)
ERROR: The executable env/bin/python is not functioning
ERROR: It thinks sys.prefix is u'/home/semihy/Masa\xfcst\xfc/flaskproject' (should be u'/home/semihy/Masa\xfcst\xfc/flaskproject/env')
ERROR: virtualenv is not compatible with this system or executable

1 个答案:

答案 0 :(得分:2)

问题是您的文件路径中有特殊字符。 /home/semihy/Masa\xfcst\xfc/flaskproject

您需要在新位置创建一个只有有效ASCII字符的文件夹,例如 /home/semihy/Masa/flaskproject