Giter Site home page Giter Site logo

wxjqr's Introduction

安装python3.5

wget https://www.python.org/ftp/python/3.5.3/Python-3.5.3.tar.xz
xz -d Python-3.5.3.tar.xz
tar xvf Python-3.5.3.tar
cd Python-3.5.3
./configure --prefix=/usr/local/python3.5 --enable-shared
make && make install
ln -s /usr/local/python3.5/bin/python3.5 /usr/bin/python3
  1. /etc/ld.so.conf下面加一行/usr/local/python3.5/lib/

  2. 保存后执行 ldconfig 生效

python3 -V

Windows环境

创建Python3的venv虚拟环境

python3 -m venv .

windows 进入虚拟环境

.\Scripts\activate

CentOS 进入虚拟环境

source bin/activate

首次执行,配置依赖包,以后根据更新依赖环境运行

(robot) [root@iz2ze2vve1jzbburujx43pz robot]>pip3 install -r requirements.txt

修改run.py相应的usrname & passwd,执行

(robot) [root@iz2ze2vve1jzbburujx43pz robot]>python3 run.py

退出

(robot) [root@iz2ze2vve1jzbburujx43pz robot]>deactivate

cp /usr/src/wxjqr/wxjqr.service /usr/lib/systemd/system/wxjqr.service

chmod 754 /usr/lib/systemd/system/wxjqr.service

systemctl enable wxjqr.service
systemctl disable wxjqr.service
systemctl status wxjqr.service
systemctl list-units --type=service
systemctl daemon-reload

systemctl start wxjqr.service
systemctl stop wxjqr.service
systemctl reload wxjqr.service

wxjqr's People

Contributors

luochaolun avatar cbwang2016 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.