본문 바로가기

엔지니어/Linux

centos 6 python3 설치

728x90
반응형

yum install zlib-devel -y
yum install openssl openssl-devel -y


xz -d Python-3.5.1.tar.xz
# 혹시 xz가 없다면 yum install xz 로 설치 하라.
tar -xvf Python-3.5.1.tar

cd Python-3.5.1
./configure --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
make && make altinstall

# pip설치 
curl -k -O https://bootstrap.pypa.io/get-pip.py
python3.5 get-pip.py


yum 설치 ---------------------------------------------

sudo yum install https://centos6.iuscommunity.org/ius-release.rpm
sudo yum install python35u
python3.5 -V

cd /var/local/
wget https://bootstrap.pypa.io/get-pip.py
python3.5 get-pip.py
pip3 -V

yum install libxslt-devel libxml2-devel python35u-devel

pip3 install --upgrade beautifulsoup4
pip3 install --upgrade pymysql
pip3 install --upgrade json
pip3 install --upgrade requests
pip3 install --upgrade lxml
pip3 install --upgrade konlpy
pip3 install --upgrade JPype1-py3
pip3 install --upgrade Cython
pip3 install --upgrade lxml
pip3 install --upgrade html5lib













반응형

'엔지니어 > Linux' 카테고리의 다른 글

Solr 설치 및 data import  (0) 2016.11.18
/var/log/messages 에 명령어 history 넣기  (0) 2016.11.18
iptables-FORWARD chain 작동안할때  (0) 2016.11.18
Pinpoint 서버 & Agent 설치  (0) 2016.11.18
backdoor 탐지  (0) 2016.11.18