Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Python Flask environment to build     - 14.04.3 Ubuntu configuration and successfully compiled source code Android 6.0 r1 (Programming)

- File easier to compare tools under Linux (Linux)

- Linux IO redirection (Linux)

- Linux 0.12 kernel and modern kernels difference in memory management (Linux)

- Samhain: Powerful intrusion detection system under Linux (Linux)

- Using Lua implement various operations list (Programming)

- Kibana Apache Password Authentication (Server)

- CentOS NAT iptables (Linux)

- Zabbix system email alert Python script (Server)

- Ubuntu and Archlinux install Notepadqq 0.50.2 (Linux)

- C ++ string in the end (Programming)

- Nginx1.8 version upgrade method AMH4.2 Free manually compile (Server)

- C ++ handling text input (Programming)

- DVD production using CentOS installation source within the company Yum (Linux)

- Puppet 3.x installed on Debian 7 (Server)

- Hadoop2.6.3 build clusters and the development of MapReduce WIN7 by Eclipse on Linux demo (Server)

- awk pattern matching (Programming)

- Linux operating system security settings initial understanding (Linux)

- To teach you how to safely send mail (Linux)

- [Errno 4] IOError: [Errno ftp error] with yum appears as a workaround (Linux)

 
         
  Python Flask environment to build
     
  Add Date : 2018-11-21      
         
         
         
  Despite repeated prior to deployment through the Python Flask environment, because there is no work to do document output, leading to re-fill each had filled out before the pit behind when deployed, in order to facilitate their own, and to enhance the work efficiency, so they spent experiment a little time to re-deploy and sorting out documents, including one-click deployment Flask environment script install.sh, Flask and environmental needs of the extended package packages.txt!

All regions posted the code!

Here is a key installation script install.sh

#! / Usr / bin / bash
#version v1.0
path = / opt /
install_basic_packages () {
cd $ path
yum install -y mysql-devel python-devel openssl-devel sqlite-devel sqlite2-devel libxml2-devel libxslt-devel libffi-devel zlib zlib-devel libjpeg libjpeg-level freetype freetype-devel
}
install_python ()
{
cd $ path
wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
tar -xvf Python-2.7.10.tgz
cd Python-2.7.10
./configure
make
make install
mv / usr / bin / python / usr / bin / python_old
cp /usr/local/bin/python2.7 / usr / bin / python
sed -i '1s / python / python2.6 / p' / usr / bin / yum
cd $ path
}
install_pip ()
{
wget https://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz --no-check-certificate
cd pip-1.2.1
python setup.py install
pip install pip == 7.1.0
cd $ path
}
install_setuptools ()
{
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz --no-check-certificate
tar xvf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
python setup.py install
cd $ path
}
install_PIL ()
{
wget http://effbot.org/media/downloads/Imaging-1.1.7.tar.gz
tar xvf Imaging-1.1.7.tar.gz
cd Imaging-1.1.7
python setup.py build_ext -i
sed -i 's / TCL_ROOT \ = None / TCL_ROOT \ = \ "\ / usr \ / lib64 \ / \" / g' setup.py
sed -i 's / JPEG_ROOT \ = None / JPEG_ROOT \ = \ "\ / usr \ / lib64 \ / \" / g' setup.py
sed -i 's / ZLIB_ROOT \ = None / ZLIB_ROOT \ = \ "\ / usr \ / lib64 \ / \" / g' setup.py
sed -i 's / TIFF_ROOT \ = None / TIFF_ROOT \ = \ "\ / usr \ / lib64 \ / \" / g' setup.py
sed -i 's / FREETYPE_ROOT \ = None / FREETYPE_ROOT \ = \ "\ / usr \ / lib64 \ / \" / g' setup.py
sed -i 's / LCMS_ROOT \ = None / LCMS_ROOT \ = \ "\ / usr \ / lib64 \ / \" / g' setup.py
python setup.py install
cd $ path
}
install_pysqlite ()
{
wget https://pypi.python.org/packages/source/p/pysqlite/pysqlite-2.5.6.tar.gz#md5=1b2f338c8d6db971e34edb799a92e2ee --no-check-certificate
tar xvf pysqlite-2.5.6.tar.gz
cd pysqlite-2.5.6
python setup.py install
cd $ path
}
install_Twisted ()
{
wget https://pypi.python.org/packages/source/T/Twisted/Twisted-15.3.0.tar.bz2#md5=b58e83da2f00b3352afad74d0c5c4599 --no-check-certificate
tar xvf Twisted-15.3.0.tar.bz2
cd Twisted-15.3.0
python setup.py install
cd $ path
}
install_pip_packages ()
{
pip install `cat pip_packages.txt`
cd $ path
}
main ()
{
install_basic_packages
install_python
install_setuptools
install_pip
install_PIL
install_pysqlite
install_Twisted
install_pip_packages
}
main
Here are some libraries need to install python, finishing in packages.txt
alembic == 0.7.7
aniso8601 == 1.0.0
Babel == 2.0
backports.ssl-match-hostname == 3.4.0.2
beautifulsoup4 == 4.4.0
bleach == 1.4.1
blinker == 1.4
certifi == 2015.4.28
cffi == 1.1.2
characteristic == 14.3.0
crypto == 1.4.1
cryptography == 0.9.3
cssselect == 0.9.1
dominate == 2.1.12
enum34 == 1.0.4
Flask == 0.10.1
Flask-Babel == 0.9
Flask-Bootstrap == 3.3.5.6
Flask-Email == 1.4.4
Flask-HTTPAuth == 2.5.0
Flask-Login == 0.2.11
Flask-Mail == 0.9.1
Flask-Migrate == 1.4.0
Flask-Moment == 0.5.0
Flask-PageDown == 0.2.1
Flask-RESTful == 0.3.4
Flask-Script == 2.0.5
Flask-SQLAlchemy == 2.0
Flask-WTF == 0.12
html5lib == 0.999999
idna == 2.0
ipaddress == 1.0.14
itsdangerous == 0.24
Jinja2 == 2.8
lxml == 3.4.4
Mako == 1.0.1
Markdown == 2.6.2
MarkupSafe == 0.23
MySQL-python == 1.2.5
Naked == 0.1.31
oauthlib == 1.0.1
pyasn1 == 0.1.8
pycparser == 2.14
pycrypto == 2.6.1
pyOpenSSL == 0.15.1
pyparsing == 2.0.2
python-dateutil == 2.4.2
pytz == 2015.4
PyYAML == 3.11
queuelib == 1.2.2
requests == 2.7.0
requests-oauthlib == 0.5.0
Scrapy == 1.0.1
setuptools == 16.0
shellescape == 3.4.1
six == 1.9.0
speaklater == 1.3
SQLAlchemy == 1.0.8
tornado == 4.2.1
tweepy == 3.3.0
w3lib == 1.11.0
Werkzeug == 0.10.4
wheel == 0.24.0
WTForms == 2.0.2
zope.interface == 4.1.2
     
         
         
         
  More:      
 
- Virtualbox virtual machine can not copy CentOS Network (Linux)
- Heartbeat cluster components Overview (Server)
- Linux CPU Monitoring Index (Linux)
- Try debugfs restore the deleted files ext3 file system (Linux)
- Linux unpack the tar file to a different directory (Linux)
- OpenJDK7 source compiler installation on CentOS 6.5 (Linux)
- JBPM6 Installation and Configuration Tutorial (Linux)
- Offline (local) Yum source structures (Linux)
- Linux system last command usage (Linux)
- CentOS installation Docker series (Linux)
- To assign multiple IP addresses NIC on the CentOS 7 (Linux)
- Mistakenly deleted redo log file group being given the lead to start the database ORA-03113 (Database)
- CentOS set up FTP server (Server)
- Linux see whether there is a hacker program (Linux)
- Linux system started to learn: the Linux syslog (Linux)
- Ubuntu 14.04 configure JDK1.8.0_25, switchable version (Linux)
- Linux source code analysis tool (Linux)
- Build your own Web server under Ubuntu Linux system (Server)
- Linux file compression and archiving (Linux)
- See how --nand flash timing diagram of a read operation Comments (Programming)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.