Centos7下pycharm community 配置Flask开发环境

依赖库

yum install -y libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel python34-devel python-pip

安装virtualenv

更新pip

pip install --upgrade 

安装virtualenv

pippip install virtualenv

创建虚拟环境

virtualenv -p python3 env_linux

激活虚拟环境

source env_linux/bin/activate

安装uwsgi flask

pip install gunicorn cython flask beanstalkc3 pyyaml Flask-RESTful Flask-Cache Flask-Psycopg2 Flask-SQLAlchemy

退出python3虚拟环境

deactivate

pycharm配置

添加Interpreter

File->Setting->Project:restful->Project Interpreter->Add Local
选择env_linux/bin/python3.4

选择Interpreter

选择该Interpreter即可

你可能感兴趣的:(Centos7下pycharm community 配置Flask开发环境)