Install Python 3.7.1 under CentOS 7

Currently, Python 2 is installed by default in the latest CentOS 7.3, and Python 3 installation package is not provided in the default official yum source. Recently, we need to install awscli on the machine. We need python2.6.5 + or python3.3 +. I install python3 through source compilation.My machine version: cat /etc/redhat-release #CentOS Lin ...

Posted by vierme on Mon, 02 Dec 2019 13:17:24 -0800

01 flask initialization project

Initialize the flask environment pip install pipenv mkdir flasky pipenv shell pipenv install flask # Install plug-ins pipenv install flask-sqlalchemy flask-migrate flask-wtf flask-mail pymysql mkdir app Create an. env file. The. env file will be loaded when using pipenv # .env FLASK_APP=run.py FLASK_DEBUG = 1 app initialization Create a new in ...

Posted by Popple3 on Sun, 01 Dec 2019 08:14:23 -0800

Bootstrap Flask of Flask series

Explain Operating system: Windows 10 Python version: 3.7x Virtual Environment Manager: virtualenv Code editor: VS Code Experimental target Use bootstrap flask to beautify the page and apply the style of bootstrap 4. X to the website. Because flask bootstrap hasn't been updated for a long time and doesn't support BS4, here we use the bootstr ...

Posted by ajfton on Sat, 30 Nov 2019 11:46:33 -0800

Python? Faker creates fake data

Reprint: https://www.cnblogs.com/hellangels333/p/9039784.html faker creates fake data In our work, sometimes we need to forge some fake data. How to use Python to forge these seemingly true fake data? Python has a package called Faker, which can be used to easily forge names, addresses, phone numbers and other information. ...

Posted by james182 on Sat, 30 Nov 2019 10:09:12 -0800

Solve the problem of SSLError during pip installation

The reason for this problem is that the certificate of the installation source is not trusted. You can change the configuration file of pip to solve this problem: Where is the profile first to change it? Read the source code of pip: Here is the pip source code if WINDOWS: bin_py = os.path.join(sys.prefix, 'Scripts') bin_ ...

Posted by mote on Sat, 30 Nov 2019 09:39:46 -0800

Master slave distributed crawler

Why use distributed Crawlers It's been a while since learning crawlers were implemented in a python file, without considering performance, efficiency, etc. So as a qualified spider, we need to learn about distributed crawlers. What distributed crawler? In short, it is to use multiple servers to get data, let these servers cooperate and assign ...

Posted by crash58 on Sat, 30 Nov 2019 07:18:16 -0800

Upgrading python2.6.6 to python2.7 makes pip command unavailable

The server environment is CentOS 6.8, and Python is the default version 2.6.6 1. Upgrade python Upgrade python2.6.6 to python2.7.14, which will not be described herePlease refer to the following documents for upgrading:https://blog.csdn.net/see_you_see_me/article/details/78550977 2.Python makes pip command unavailable Upgrading Python 2.7 resu ...

Posted by scottchr226 on Fri, 29 Nov 2019 10:06:26 -0800

pypi uploads its own projects

Upload and publish package files to PyPI Create a PyPI account Very simple, register directly through the official website https://pypi.python.org/pypi?. ... , but you need to verify the message and confirm activation. Create user authentication file ~ /. pypirc Create a new blank file named. pypirc in your own user direct ...

Posted by stovellp on Thu, 28 Nov 2019 12:37:20 -0800

linux environment installs python3 environment (including setuptools,pip)

date 20191125 MondayInstall Python 3.7.3 environment on linux 6.5Because our mac environment is:(base) majihuideMacBook-Pro:~ majihui$ python -VPython 3.7.3 Next, install Python 3.7.3 on my local test environment[root@templatec6 ~]# cat /etc/redhat-release CentOS release 6.5 (Final)linux centos6.5 and centos7 are available on linux, the compi ...

Posted by derekm on Mon, 25 Nov 2019 11:34:01 -0800

[probability DP] CF494C Helping People

[title]CF There is a sequence aaa with nnn length and mmm operations. Each operation has the probability of PIP ﹣ IPI ﹣ [l i, ri] [l ﹣ I, R ﹣ I] [Li, ri ﹣ plus one. The intervals of all operations are only completely inclusive and disjoint. Find the expectation of the maximum value in aaa after all operations.n≤105,m≤5000n\ ...

Posted by nEmoGrinder on Sun, 24 Nov 2019 12:30:39 -0800