1. 首页
  2. 数据库
  3. 其它
  4. anaconda+uwsgi报错Fatal Python error: initfsencoding: Unable to get the locale enc

anaconda+uwsgi报错Fatal Python error: initfsencoding: Unable to get the locale enc

上传者: 2021-01-16 17:27:15上传 PDF文件 60.22KB 热度 28次
前言 我在使用阿里云centos7.4布置django网站的时候,因为自带的是python2,而我需要的是python3。为了图方便我安装了anaconda来引入python3,但是造成了不少的环境混乱的问题,在启动uwsgi的时候会报错找不到python。 安装uwsgi # 在这里默认你的pip3已经添加到环境 pip install uwsgi 如果pip无法使用,可以在/etc/profile 文件最后添加Anaconda环境路径 # Anaconda export PATH=$PATH:/root/anaconda3/bin 测试uwsgi是否安装成功 随便找个干净的目录下(我这
下载地址
用户评论