# py-trainings **Repository Path**: sky-wang/py-trainings ## Basic Information - **Project Name**: py-trainings - **Description**: No description available - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-03-14 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # py-trainings ## pip ``` curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py --user sky ``` ``` $ vim ~/.zshrc # Add pip to PATH for scripting. export PATH="$PATH:$HOME/.local/bin" ``` ## cgi + 可执行文件,`chmod a+x cgifile` + 添加`cgi-bin`目录 ``` python -m http.server --cgi ``` ## flask ``` pip install flask --user sky ``` ``` FLASK_APP=src/powers.py flask run ``` ## pychecker ### install ``` wget https://nchc.dl.sourceforge.net/project/pychecker/pychecker/0.8.19/pychecker-0.8.19.tar.gz tar -xzvf pychecker-0.8.19.tar.gz cd pychecker-0.8.19 sudo python2 setup.py install ``` 无法试用python3安装,语法错误 ``` ➜ pychecker-0.8.19 python3 setup.py install File "setup.py", line 132 print "note: install_scripts can only be invoked by install" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("note: install_scripts can only be invoked by install")? ``` ## pylint ``` pip install pylint --user sky ```