-ascii art 추가
https://noelnoelnoel.tistory.com/144
-python 3.6 설치
#repository 추가
yum install -y https://centos7.iuscommunity.org/ius-release.rpm
#python 3.x 버젼 확인
yum search python3
#설치
sudo yum install -y python36u python36u-libs python36u-devel python36u-pip
-python 3.5 설치
yum install -y https://centos7.iuscommunity.org/ius-release.rpm
yum search python3 #(대충 넘어가지 말고 파일 목록 다 확인 필요)
sudo yum install python35u.x86_64
sudo yum install python35u-debug.x86_64
sudo yum install python35u-devel.x86_64
sudo yum install python35u-libspython35u-libs.x86_64
sudo yum install python35u-pip.noarch
sudo yum install python35u-setuptools.noarch
sudo yum install python35u-tools.x86_64
sudo yum install python35u-libs
sudo yum install python35u-lxml
pip3.5 install --upgrade pip
-확인
which python3.6
/usr/bin/python3.6
python3.6 -V
-git install, ssh key 등록
https://noelnoelnoel.tistory.com/146
-접속 확인
ssh git@github.com
The authenticity of host 'github.com (아이피)' can't be established.
RSA key fingerprint is 머라머라
RSA key fingerprint is 머라머라.
Are you sure you want to continue connecting (yes/no)?
yes
Warning: Permanently added 'github.com,아이피' (RSA) to the list of known hosts.
PTY allocation request failed on channel 0
Hi 니이름! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.
-git clone
git clone 깃헙주소
-EPEL repository 설치
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
-pip 설치
yum install python-pip
-pip 버젼 확인
pip --version
pip3.6 --version
-pip 업그레이드
pip3.6 install --upgrade pip
-라이브러리 설치
pip3 install flask
pip3 install sqlalchemy
pip3 install pyyaml
pip3 install numpy
pip3 install python-dateutil
pip3 install simplejson
-MySQLdb 설치
오류시 참고 : https://noelnoelnoel.tistory.com/search/mySQLdb
wget https://pypi.python.org/packages/6f/86/bad31f1c1bb0cc99e88ca2adb7cb5c71f7a6540c1bb001480513de76a931/mysqlclient-1.3.12.tar.gz#md5=dbf1716e2c01966afec0198d75ce7e69
tar xvfz mysqlclient-1.3.12.tar.gz
cd mysqlclient-1.3.12
yum install mariadb-devel gcc python36u-devel
sudo python3.6 setup.py clean
sudo python3.6 setup.py build
sudo python3.6 setup.py install
nginx+flask 설정
https://noelnoelnoel.tistory.com/search/nginx
https://noelnoelnoel.tistory.com/153
-mysql_config_editor 설치, 설정
https://noelnoelnoel.tistory.com/96
-server to server ssh 설정
https://noelnoelnoel.tistory.com/145
-server <-> jenkins ssh 설정
https://noelnoelnoel.tistory.com/147
-jenkins ssh 설정
'Linux-centos > Linux-centos__python' 카테고리의 다른 글
centos python 환경 설정, no module named project name (0) | 2020.04.02 |
---|---|
python3.x 심볼릭링크 (0) | 2020.03.27 |
libmysqlclient.so.18 (0) | 2019.10.17 |
anaconda 심볼릭링크 해제 (0) | 2019.10.17 |
libmysqlclient.so.20: cannot open shared object file: No such file or directory (0) | 2019.07.05 |