python 安装pycurl

yum install libghc-gnutls-dev opnssl nss -y
126 yum install libghc-gnutls-dev -y
127 yum install https://centos7.iuscommunity.org/ius-release.rpm -y
128 yum install python36u -y
129 ln -s /bin/python3.6 /bin/python3
130 yum install python36u-pip -y
131 ln -s /bin/pip3.6 /bin/pip3
132 yum install libcurl-devel -y
133 yum install python36u-devel -y
134 yum install gcc openssl-devel libffi-devel python-devel -y
135 pip3.6 install cryptograph
136 pip3.6 install --upgrade pip3.6
137 pip3.6 install --upgrade pip
138 cd /usr/local/src/
139 ls
140 wget https://curl.haxx.se/download/curl-7.61.0.tar.gz
141 tar zxvf curl-7.61.0.tar.gz
142 cd curl-7.61.0
143 ./configure --prefix=/usr/local/ --without-ssl --with-nss
144 make
145 make install

126 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
127 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
128 yum group install list
129 yum group install Devepment tools -y
130 yum groupinstall Development tools -y
131 pip install wheel
132 pip3.6 install wheel
133 #
134 pip3 install --compile --install-option="--with-openssl" pycurl
135 yum install supervisor -y
136 supervisord -c /etc/supervisord.conf

wget https://curl.haxx.se/download/curl-7.61.0.tar.gz

tar zxvf curl-7.61.0.tar.gz

cd curl-7.61.0

. ./configure

--prefix=/usr/local/ --without-ssl --with-nss
make
make install


pip install --compile --install-option="--with-openssl" pycurl

原文地址:https://www.cnblogs.com/gaoyuechen/p/9836347.html