使用virtualenv烧瓶安装错误 [英] Flask installation error with virtualenv

查看:133
本文介绍了使用virtualenv烧瓶安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置烧瓶,所以我按照Flask安装网站上的说明。当我使用virtualenv venv时,出现错误。同时,python版本是2.7.6。 :〜/Masaüstü/ flaskproject $ virtualenv env
env / bin / python中的新python可执行文件
Traceback(最近调用最后一个):
文件< string>,第1行<模块>
UnicodeDecodeError:'ascii'编解码器无法解码位置17中的字节0xc3:序号不在范围内(128)
错误:可执行文件env / bin / python无法正常运行
错误:认为sys.prefix是u'/ home / semihy / Masa\xfcst\xfc / flaskproject'(应该是u'/ home / semihy / Masa\xfcst\xfc / flaskproject / env')
ERROR :virtualenv不兼容这个系统或可执行文件


解决方案

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



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


I want to setup flask so I follow the instructions on Flask installation website. I got error when I used "virtualenv venv".Meanwhile version of python is 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

解决方案

The issue is that you have special characters in your file-path. /home/semihy/Masa\xfcst\xfc/flaskproject

You will need to create a folder in a new location with only valid ASCII characters, e.g. /home/semihy/Masa/flaskproject

这篇关于使用virtualenv烧瓶安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆