背景:容器鏡像須要安裝pyhive,可是容器不能訪問公網(宿主機也不行),只能離線安裝。html
Linux下安裝Python3.6和第三方庫python
centos7sql
在本身電腦安裝了VMware workstation,選擇和容器同樣的操做系統,避免沒必要要的報錯。docker
爲了更好的適配容器,我選擇的是最小化安裝且不安裝第三方 1.關閉selinux # sed -i 's/=enforcing/=disabled/g' /etc/selinux/config 2.關閉防火牆 # systemctl stop firewalld 3.開啓yum緩存rpm包到指定位置(由於pyhive模塊須要依賴) # vi /etc/yum.conf [main] cachedir=/soft #自定義路徑 keepcache=1 #緩存是否保存:0--關閉,1--開啓 4.更換yum源 # mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup # curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo # yum makecache
python-3.6.5.tar.gzshell
上傳python-3.6.5.tar.gz到剛剛安裝的虛擬機 1.安裝依賴環境 # yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel 2.建立工程目錄: # mkdir -p /usr/local/python3 3.解壓源碼包 # tar -zxvf Python-3.6.5.tgz 4.進入解壓後的目錄,編譯安裝。 # cd Python-3.6.5 # ./configure --prefix=/usr/local/python3 # make && make install 5.創建python3的軟連接 # ln -s /usr/local/python3/bin/python3 /usr/bin/python3 6.添加環境變量 # vim ~/.bash_profile PATH=$PATH:$HOME/bin:/usr/local/python3/bin export PATH # source ~/.bash_profile 7.查看python版本 # python3 -V
這裏也是一步步試出來的,放到一塊兒避免沒必要要報錯 1.安裝依賴包 # yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel # yum -y install gcc # yum -y install gcc-c++ # yum -y install python-devel # yum -y install gcc libffi-devel python-devel openssl-devel # yum -y install libffi-devel python-devel openssl-devel # yum -y install cyrus-sasl cyrus-sasl-devel cyrus-sasl-lib # yum -y install createrepo # yum -y install vim 2.製做repo源,後面容器須要用 # cd /soft/base/ # createrepo packages
1.將全部包下載到這個目錄中,方便導入到鏡像 # mkdir -p /soft/pyhive 2.更新pip並更換鏡像,使下載速度快些 # pip3 install pip -U # pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple 3.安裝pyhive # pip3 install pyhive # pip3 install thrift # pip3 install sasl # pip3 install thrift_sasl 4.將包放至/soft/pyhive # cd /soft/pyhive # pip freeze > requirements.txt # 將全部包下載到DIR這個目錄中 # pip download -d /soft/pyhive -r requirements.txt # pip wheel -w /soft/pyhive -r requirements.txt 5.查看包 # ll total 1192 -rw-r--r-- 1 root root 829220 Nov 18 21:57 future-0.18.2.tar.gz -rw-r--r-- 1 root root 41400 Nov 18 21:57 PyHive-0.6.3.tar.gz -rw-r--r-- 1 root root 227183 Nov 18 21:57 python_dateutil-2.8.1-py2.py3-none-any.whl -rw-r--r-- 1 root root 110 Nov 18 22:25 requirements.txt -rw-r--r-- 1 root root 30409 Nov 18 22:25 sasl-0.2.1.tar.gz -rw-r--r-- 1 root root 10963 Nov 18 21:58 six-1.15.0-py2.py3-none-any.whl -rw-r--r-- 1 root root 59911 Nov 18 22:01 thrift-0.13.0.tar.gz -rw-r--r-- 1 root root 3944 Nov 18 22:25 thrift_sasl-0.4.2.tar.gz # cat requirements.txt future==0.18.2 PyHive==0.6.3 python-dateutil==2.8.1 sasl==0.2.1 six==1.15.0 thrift==0.13.0 thrift-sasl==0.4.2
依賴的rpm包在/soft/base/packages # cp -r /soft/base/packages /soft # cd /soft # tar -zcvf pyhive.tar.gz pyhive packages
1.查看容器ID(我這裏是7b36e3a4cbf6) # docker ps 2.將宿主機的rpm包移動到/tmp/hyq,並壓縮 # cp -r /etc/cdrom /tmp/hyq # cd /tmp/hyq # tar -zcvf cdrom.tar.gz cdrom 3.將pyhive.tar.gz上傳到/tmp/hyq 4.將cdrom.tar.gz和pyhive.tar.gz上傳到容器 # docker cp cdrom.tar.gz 7b36e3a4cbf6:/root # docker cp pyhive.tar.gz 7b36e3a4cbf6:/root
1.進入容器 # docker exec -it 7b36e3a4cbf6 /bin/bash 2.配置yum源 # vi /etc/yum.repo.d/local.repo [packages] name=packages baseurl=file:///root/packages enabled=1 gpgcheck=0 [cdrom] name=cdrom baseurl=file:///root/cdrom enabled=1 gpgcheck=0 # yum repolist 3.解壓tar包 # cd /root # tar xf cdrom.tar.gz # tar xf pyhive.tar.gz 4.yum安裝依賴 # yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel # yum -y install gcc # yum -y install gcc-c++ # yum -y install python-devel # yum -y install gcc libffi-devel python-devel openssl-devel # yum -y install libffi-devel python-devel openssl-devel # yum -y install cyrus-sasl cyrus-sasl-devel cyrus-sasl-lib 5.安裝pyhive # cd /root/pyhive pip install --no-index --find-links=/root/pyhive -r requirements.txt
#!/usr/bin/python from pyhive import hive conn = hive.Connection(host='66.1.30.10',port=10000,username='dwetl',database='default') cursor = conn.cursor() cursor.execute('show databases') for result in cursor.fetchall(): print(result) cursor.execute('show tables') for table in cursor.fetchall(): print(table)
# docker commit 7b36e3a4cbf6 鏡像名:tag
[root@localhost Python-3.6.5]# cd /soft/ [root@localhost soft]# ls base epel extras timedhosts timedhosts.txt updates [root@localhost soft]# mkdir pyhive [root@localhost soft]# pip3 -V pip 9.0.3 from /usr/local/python3/lib/python3.6/site-packages (python 3.6) [root@localhost soft]# pip install pyhive -bash: pip: command not found [root@localhost soft]# pip3 install pyhive Collecting pyhive Downloading https://files.pythonhosted.org/packages/f8/f3/666dd810fa88c3cb9fea2c39817242036dee963ff62291f7c0f8fe34a8e1/PyHive-0.6.3.tar.gz (41kB) 100% |████████████████████████████████| 51kB 71kB/s Collecting future (from pyhive) Downloading https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829kB) 86% |███████████████████████████▋ | 716kB 4.4kB/s eta 0:00:26Exception: Traceback (most recent call last): File "/usr/local/python3/lib/python3.6/site-packages/pip/_vendor/urllib3/response.py", line 302, in _error_catcher yield File "/usr/local/python3/lib/python3.6/site-packages/pip/_vendor/urllib3/response.py", line 384, in read data = self._fp.read(amt) File "/usr/local/python3/lib/python3.6/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 60, in read data = self.__fp.read(amt) File "/usr/local/python3/lib/python3.6/http/client.py", line 449, in read n = self.readinto(b) File "/usr/local/python3/lib/python3.6/http/client.py", line 493, in readinto n = self.fp.readinto(b) File "/usr/local/python3/lib/python3.6/socket.py", line 586, in readinto return self._sock.recv_into(b) File "/usr/local/python3/lib/python3.6/ssl.py", line 1009, in recv_into return self.read(nbytes, buffer) File "/usr/local/python3/lib/python3.6/ssl.py", line 871, in read return self._sslobj.read(len, buffer) File "/usr/local/python3/lib/python3.6/ssl.py", line 631, in read v = self._sslobj.read(len, buffer) socket.timeout: The read operation timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/python3/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/usr/local/python3/lib/python3.6/site-packages/pip/commands/install.py", line 324, in run requirement_set.prepare_files(finder) File "/usr/local/python3/lib/python3.6/site-packages/pip/req/req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "/usr/local/python3/lib/python3.6/site-packages/pip/req/req_set.py", line 620, in _prepare_file session=self.session, hashes=hashes) File "/usr/local/python3/lib/python3.6/site-packages/pip/download.py", line 821, in unpack_url hashes=hashes File "/usr/local/python3/lib/python3.6/site-packages/pip/download.py", line 659, in unpack_http_url hashes) File "/usr/local/python3/lib/python3.6/site-packages/pip/download.py", line 882, in _download_http_url _download_url(resp, link, content_file, hashes) File "/usr/local/python3/lib/python3.6/site-packages/pip/download.py", line 603, in _download_url hashes.check_against_chunks(downloaded_chunks) File "/usr/local/python3/lib/python3.6/site-packages/pip/utils/hashes.py", line 46, in check_against_chunks for chunk in chunks: File "/usr/local/python3/lib/python3.6/site-packages/pip/download.py", line 571, in written_chunks for chunk in chunks: File "/usr/local/python3/lib/python3.6/site-packages/pip/utils/ui.py", line 139, in iter for x in it: File "/usr/local/python3/lib/python3.6/site-packages/pip/download.py", line 560, in resp_read decode_content=False): File "/usr/local/python3/lib/python3.6/site-packages/pip/_vendor/urllib3/response.py", line 436, in stream data = self.read(amt=amt, decode_content=decode_content) File "/usr/local/python3/lib/python3.6/site-packages/pip/_vendor/urllib3/response.py", line 401, in read raise IncompleteRead(self._fp_bytes_read, self.length_remaining) File "/usr/local/python3/lib/python3.6/contextlib.py", line 99, in __exit__ self.gen.throw(type, value, traceback) File "/usr/local/python3/lib/python3.6/site-packages/pip/_vendor/urllib3/response.py", line 307, in _error_catcher raise ReadTimeoutError(self._pool, None, 'Read timed out.') pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. You are using pip version 9.0.3, however version 20.2.4 is available. You should consider upgrading via the 'pip install --upgrade pip' command. [root@localhost soft]# pip3 -V pip 9.0.3 from /usr/local/python3/lib/python3.6/site-packages (python 3.6) [root@localhost soft]# pip3 install --upgrade pip Collecting pip Downloading https://files.pythonhosted.org/packages/cb/28/91f26bd088ce8e22169032100d4260614fc3da435025ff389ef1d396a433/pip-20.2.4-py2.py3-none-any.whl (1.5MB) 100% |████████████████████████████████| 1.5MB 19kB/s Installing collected packages: pip Found existing installation: pip 9.0.3 Uninstalling pip-9.0.3: Successfully uninstalled pip-9.0.3 Successfully installed pip-20.2.4 [root@localhost soft]# pip3 install pyhive Collecting pyhive Using cached PyHive-0.6.3.tar.gz (41 kB) Collecting future Downloading future-0.18.2.tar.gz (829 kB) |████████████████████████████████| 829 kB 5.3 kB/s Collecting python-dateutil Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB) |████████████████████████████████| 227 kB 5.3 kB/s Requirement already satisfied: six>=1.5 in /usr/local/python3/lib/python3.6/site-packages (from pyth on-dateutil->pyhive) (1.15.0) Using legacy 'setup.py install' for pyhive, since package 'wheel' is not installed. Using legacy 'setup.py install' for future, since package 'wheel' is not installed. Installing collected packages: future, python-dateutil, pyhive Running setup.py install for future ... done Running setup.py install for pyhive ... done Successfully installed future-0.18.2 pyhive-0.6.3 python-dateutil-2.8.1 [root@localhost soft]# cd pyhive/ [root@localhost pyhive]# pip3 freeze > requirements.txt [root@localhost pyhive]# pip3 download -d /soft/pyhive -r requirements.txt Collecting future==0.18.2 Using cached future-0.18.2.tar.gz (829 kB) Saved ./future-0.18.2.tar.gz Collecting PyHive==0.6.3 Using cached PyHive-0.6.3.tar.gz (41 kB) Saved ./PyHive-0.6.3.tar.gz Collecting python-dateutil==2.8.1 Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB) Saved ./python_dateutil-2.8.1-py2.py3-none-any.whl Collecting six==1.15.0 Using cached six-1.15.0-py2.py3-none-any.whl (10 kB) Saved ./six-1.15.0-py2.py3-none-any.whl Successfully downloaded future PyHive python-dateutil six [root@localhost pyhive]# pip3 wheel -w /soft/pyhive -r requirements.txt WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connect ion.HTTPSConnection object at 0x7f5e28758128>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/future/ Collecting future==0.18.2 Using cached future-0.18.2.tar.gz (829 kB) Collecting PyHive==0.6.3 Using cached PyHive-0.6.3.tar.gz (41 kB) Collecting python-dateutil==2.8.1 File was already downloaded /soft/pyhive/python_dateutil-2.8.1-py2.py3-none-any.whl Collecting six==1.15.0 File was already downloaded /soft/pyhive/six-1.15.0-py2.py3-none-any.whl Skipping python-dateutil, due to already being wheel. Skipping six, due to already being wheel. Building wheels for collected packages: future, PyHive Building wheel for future (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-qz8xddf1/future/setup.py'"'"'; __file__='"'" '/tmp/pip-wheel-qz8xddf1/future/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec (compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-hs1xwclv cwd: /tmp/pip-wheel-qz8xddf1/future/ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Failed building wheel for future Running setup.py clean for future Building wheel for PyHive (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-qz8xddf1/pyhive/setup.py'"'"'; __file__='"'" '/tmp/pip-wheel-qz8xddf1/pyhive/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec (compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-s7uf9n71 cwd: /tmp/pip-wheel-qz8xddf1/pyhive/ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Failed building wheel for PyHive Running setup.py clean for PyHive Failed to build future PyHive ERROR: Failed to build one or more wheels [root@localhost pyhive]# pip3 install thrift WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connect ion.HTTPSConnection object at 0x7f37aedcc208>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/thrift/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connect ion.HTTPSConnection object at 0x7f37aedcc320>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/thrift/ Collecting thrift Downloading thrift-0.13.0.tar.gz (59 kB) |████████████████████████████████| 59 kB 3.3 kB/s Requirement already satisfied: six>=1.7.2 in /usr/local/python3/lib/python3.6/site-packages (from thrift) (1.15.0) Using legacy 'setup.py install' for thrift, since package 'wheel' is not installed. Installing collected packages: thrift Running setup.py install for thrift ... done Successfully installed thrift-0.13.0 [root@localhost pyhive]# pip3 freeze > requirements.txt [root@localhost pyhive]# pip3 download -d /soft/pyhive -r requirements.txt Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting future==0.18.2 File was already downloaded /soft/pyhive/future-0.18.2.tar.gz Collecting PyHive==0.6.3 File was already downloaded /soft/pyhive/PyHive-0.6.3.tar.gz Collecting python-dateutil==2.8.1 File was already downloaded /soft/pyhive/python_dateutil-2.8.1-py2.py3-none-any.whl Collecting six==1.15.0 File was already downloaded /soft/pyhive/six-1.15.0-py2.py3-none-any.whl Collecting thrift==0.13.0 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/97/1e/3284d19d7be99305eda145b8aa46b0c33244e4a496ec66440dac19f8274d/thrift-0.13.0.tar.gz (59 kB) |████████████████████████████████| 59 kB 611 kB/s Saved ./thrift-0.13.0.tar.gz Successfully downloaded future PyHive python-dateutil six thrift [root@localhost pyhive]# pip3 wheel -w /soft/pyhive -r requirements.txt Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting future==0.18.2 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829 kB) |████████████████████████████████| 829 kB 144 kB/s Collecting PyHive==0.6.3 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f8/f3/666dd810fa88c3cb9fea2c39817242036dee963ff62291f7c0f8fe34a8e1/PyHive-0.6.3.tar.gz (41 kB) |████████████████████████████████| 41 kB 302 kB/s Collecting python-dateutil==2.8.1 File was already downloaded /soft/pyhive/python_dateutil-2.8.1-py2.py3-none-any.whl Collecting six==1.15.0 File was already downloaded /soft/pyhive/six-1.15.0-py2.py3-none-any.whl Collecting thrift==0.13.0 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/97/1e/3284d19d7be99305eda145b8aa46b0c33244e4a496ec66440dac19f8274d/thrift-0.13.0.tar.gz (59 kB) Skipping python-dateutil, due to already being wheel. Skipping six, due to already being wheel. Building wheels for collected packages: future, PyHive, thrift Building wheel for future (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-f1m3bxs_/future/setup.py'"'"'; __file__='"'" '/tmp/pip-wheel-f1m3bxs_/future/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec (compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-zkw8asdy cwd: /tmp/pip-wheel-f1m3bxs_/future/ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Failed building wheel for future Running setup.py clean for future Building wheel for PyHive (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-f1m3bxs_/pyhive/setup.py'"'"'; __file__='"'" '/tmp/pip-wheel-f1m3bxs_/pyhive/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec (compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-1x0e_y0u cwd: /tmp/pip-wheel-f1m3bxs_/pyhive/ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Failed building wheel for PyHive Running setup.py clean for PyHive Building wheel for thrift (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-f1m3bxs_/thrift/setup.py'"'"'; __file__='"'" '/tmp/pip-wheel-f1m3bxs_/thrift/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec (compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-h03q21z7 cwd: /tmp/pip-wheel-f1m3bxs_/thrift/ Complete output (8 lines): /usr/local/python3/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Failed building wheel for thrift Running setup.py clean for thrift Failed to build future PyHive thrift ERROR: Failed to build one or more wheels [root@localhost pyhive]# pip3 install sasl Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connect ion.HTTPSConnection object at 0x7febbc873400>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/sasl/ Collecting sasl Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8e/2c/45dae93d666aea8492678499e0999269b4e55f1829b1e4de5b8204706ad9/sasl-0.2.1.tar.gz (30 kB) Requirement already satisfied: six in /usr/local/python3/lib/python3.6/site-packages (from sasl) (1.15.0) Using legacy 'setup.py install' for sasl, since package 'wheel' is not installed. Installing collected packages: sasl Running setup.py install for sasl ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qmms573z/sasl/setup.py'"'"'; __file__='" '"'/tmp/pip-install-qmms573z/sasl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();ex ec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-l3ks3dxm/install-record.txt --single-version-externally-managed --compile --install-he aders /usr/local/python3/include/python3.6m/sasl cwd: /tmp/pip-install-qmms573z/sasl/ Complete output (25 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/sasl copying sasl/__init__.py -> build/lib.linux-x86_64-3.6/sasl running egg_info writing sasl.egg-info/PKG-INFO writing dependency_links to sasl.egg-info/dependency_links.txt writing requirements to sasl.egg-info/requires.txt writing top-level names to sasl.egg-info/top_level.txt reading manifest file 'sasl.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'sasl.egg-info/SOURCES.txt' copying sasl/saslwrapper.cpp -> build/lib.linux-x86_64-3.6/sasl copying sasl/saslwrapper.h -> build/lib.linux-x86_64-3.6/sasl copying sasl/saslwrapper.pyx -> build/lib.linux-x86_64-3.6/sasl running build_ext building 'sasl.saslwrapper' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/sasl gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Isasl -I/usr/local/python3/include/python3.6m -c sasl/sa slwrapper.cpp -o build/temp.linux-x86_64-3.6/sasl/saslwrapper.o gcc: error trying to exec 'cc1plus': execvp: No such file or directory error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qmms573 z/sasl/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qmms573z/sasl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n '"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-l3ks3dxm/install-record.txt --single-version-external ly-managed --compile --install-headers /usr/local/python3/include/python3.6m/sasl Check the logs for full command output. [root@localhost pyhive]# yum -y install gcc Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error" Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=stock&content=centos error was 12: Timeout on https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=stock&content=centos: (28, 'Operation timed out after 30001 milliseconds wit h 0 out of 0 bytes received') ^C Exiting on user cancel [root@localhost pyhive]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup [root@localhost pyhive]# curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2523 100 2523 0 0 8226 0 --:--:-- --:--:-- --:--:-- 8245 [root@localhost pyhive]# yum install python-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=stock&content=centos error was 14: curl#6 - "Could not resolve host: mirrors.fedoraproject.org; Unknown error" * base: mirrors.aliyun.com * epel: hkg.mirror.rackspace.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package python-devel.x86_64 0:2.7.5-89.el7 will be installed --> Processing Dependency: python(x86-64) = 2.7.5-89.el7 for package: python-devel-2.7.5-89.el7.x86_64 --> Processing Dependency: python2-rpm-macros > 3-30 for package: python-devel-2.7.5-89.el7.x86_64 --> Processing Dependency: python-rpm-macros > 3-30 for package: python-devel-2.7.5-89.el7.x86_64 --> Running transaction check ---> Package python.x86_64 0:2.7.5-88.el7 will be updated ---> Package python.x86_64 0:2.7.5-89.el7 will be an update --> Processing Dependency: python-libs(x86-64) = 2.7.5-89.el7 for package: python-2.7.5-89.el7.x86_64 ---> Package python-rpm-macros.noarch 0:3-34.el7 will be installed --> Processing Dependency: python-srpm-macros for package: python-rpm-macros-3-34.el7.noarch ---> Package python2-rpm-macros.noarch 0:3-34.el7 will be installed --> Running transaction check ---> Package python-libs.x86_64 0:2.7.5-88.el7 will be updated ---> Package python-libs.x86_64 0:2.7.5-89.el7 will be an update ---> Package python-srpm-macros.noarch 0:3-34.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================================================== Installing: python-devel x86_64 2.7.5-89.el7 base 398 k Installing for dependencies: python-rpm-macros noarch 3-34.el7 base 9.1 k python-srpm-macros noarch 3-34.el7 base 8.8 k python2-rpm-macros noarch 3-34.el7 base 8.1 k Updating for dependencies: python x86_64 2.7.5-89.el7 base 96 k python-libs x86_64 2.7.5-89.el7 base 5.6 M Transaction Summary ==================================================================================================================================================================== Install 1 Package (+3 Dependent packages) Upgrade ( 2 Dependent packages) Total download size: 6.2 M Is this ok [y/d/N]: y Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/6): python-2.7.5-89.el7.x86_64.rpm | 96 kB 00:00:00 (2/6): python-devel-2.7.5-89.el7.x86_64.rpm | 398 kB 00:00:02 (3/6): python-rpm-macros-3-34.el7.noarch.rpm | 9.1 kB 00:00:00 (4/6): python-srpm-macros-3-34.el7.noarch.rpm | 8.8 kB 00:00:00 (5/6): python2-rpm-macros-3-34.el7.noarch.rpm | 8.1 kB 00:00:00 (6/6): python-libs-2.7.5-89.el7.x86_64.rpm | 5.6 MB 00:00:21 -------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 284 kB/s | 6.2 MB 00:00:22 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : python-libs-2.7.5-89.el7.x86_64 1/8 Updating : python-2.7.5-89.el7.x86_64 2/8 Installing : python-srpm-macros-3-34.el7.noarch 3/8 Installing : python-rpm-macros-3-34.el7.noarch 4/8 Installing : python2-rpm-macros-3-34.el7.noarch 5/8 Installing : python-devel-2.7.5-89.el7.x86_64 6/8 Cleanup : python-2.7.5-88.el7.x86_64 7/8 Cleanup : python-libs-2.7.5-88.el7.x86_64 8/8 Verifying : python2-rpm-macros-3-34.el7.noarch 1/8 Verifying : python-rpm-macros-3-34.el7.noarch 2/8 Verifying : python-devel-2.7.5-89.el7.x86_64 3/8 Verifying : python-srpm-macros-3-34.el7.noarch 4/8 Verifying : python-libs-2.7.5-89.el7.x86_64 5/8 Verifying : python-2.7.5-89.el7.x86_64 6/8 Verifying : python-2.7.5-88.el7.x86_64 7/8 Verifying : python-libs-2.7.5-88.el7.x86_64 8/8 Installed: python-devel.x86_64 0:2.7.5-89.el7 Dependency Installed: python-rpm-macros.noarch 0:3-34.el7 python-srpm-macros.noarch 0:3-34.el7 python2-rpm-macros.noarch 0:3-34.el7 Dependency Updated: python.x86_64 0:2.7.5-89.el7 python-libs.x86_64 0:2.7.5-89.el7 Complete! [root@localhost pyhive]# yum install gcc libffi-devel python-devel openssl-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.3 kB 00:00:00 * base: mirrors.aliyun.com * epel: mirrors.bfsu.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 Package gcc-4.8.5-44.el7.x86_64 already installed and latest version Package python-devel-2.7.5-89.el7.x86_64 already installed and latest version Package 1:openssl-devel-1.0.2k-19.el7.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package libffi-devel.x86_64 0:3.0.13-19.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================================================== Installing: libffi-devel x86_64 3.0.13-19.el7 base 23 k Transaction Summary ==================================================================================================================================================================== Install 1 Package Total download size: 23 k Installed size: 27 k Is this ok [y/d/N]: y Is this ok [y/d/N]: y Downloading packages: libffi-devel-3.0.13-19.el7.x86_64.rpm | 23 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : libffi-devel-3.0.13-19.el7.x86_64 1/1 Verifying : libffi-devel-3.0.13-19.el7.x86_64 1/1 Installed: libffi-devel.x86_64 0:3.0.13-19.el7 Complete! [root@localhost pyhive]# yum install -y libffi-devel python-devel openssl-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.3 kB 00:00:00 * base: mirrors.aliyun.com * epel: mirrors.bfsu.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 Package libffi-devel-3.0.13-19.el7.x86_64 already installed and latest version Package python-devel-2.7.5-89.el7.x86_64 already installed and latest version Package 1:openssl-devel-1.0.2k-19.el7.x86_64 already installed and latest version Nothing to do [root@localhost pyhive]# pip3 install sasl Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting sasl Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8e/2c/45dae93d666aea8492678499e0999269b4e55f1829b1e4de5b8204706ad9/sasl-0.2.1.tar.gz (30 kB) Requirement already satisfied: six in /usr/local/python3/lib/python3.6/site-packages (from sasl) (1.15.0) Using legacy 'setup.py install' for sasl, since package 'wheel' is not installed. Installing collected packages: sasl Running setup.py install for sasl ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-khsp88sq/sasl/setup.py'"'"'; __file__='" '"'/tmp/pip-install-khsp88sq/sasl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();ex ec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-1edzncl3/install-record.txt --single-version-externally-managed --compile --install-he aders /usr/local/python3/include/python3.6m/sasl cwd: /tmp/pip-install-khsp88sq/sasl/ Complete output (25 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/sasl copying sasl/__init__.py -> build/lib.linux-x86_64-3.6/sasl running egg_info writing sasl.egg-info/PKG-INFO writing dependency_links to sasl.egg-info/dependency_links.txt writing requirements to sasl.egg-info/requires.txt writing top-level names to sasl.egg-info/top_level.txt reading manifest file 'sasl.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'sasl.egg-info/SOURCES.txt' copying sasl/saslwrapper.cpp -> build/lib.linux-x86_64-3.6/sasl copying sasl/saslwrapper.h -> build/lib.linux-x86_64-3.6/sasl copying sasl/saslwrapper.pyx -> build/lib.linux-x86_64-3.6/sasl running build_ext building 'sasl.saslwrapper' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/sasl gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Isasl -I/usr/local/python3/include/python3.6m -c sasl/sa slwrapper.cpp -o build/temp.linux-x86_64-3.6/sasl/saslwrapper.o gcc: error trying to exec 'cc1plus': execvp: No such file or directory error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-khsp88s q/sasl/setup.py'"'"'; __file__='"'"'/tmp/pip-install-khsp88sq/sasl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n '"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-1edzncl3/install-record.txt --single-version-external ly-managed --compile --install-headers /usr/local/python3/include/python3.6m/sasl Check the logs for full command output. [root@localhost pyhive]# yum install cc1plus Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.3 kB 00:00:00 * base: mirrors.aliyun.com * epel: hkg.mirror.rackspace.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 No package cc1plus available. Error: Nothing to do [root@localhost pyhive]# yum install gcc-c++</span> -bash: syntax error near unexpected token `newline' [root@localhost pyhive]# yum install gcc-c++ Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.3 kB 00:00:00 * base: mirrors.aliyun.com * epel: mirrors.bfsu.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package gcc-c++.x86_64 0:4.8.5-44.el7 will be installed --> Processing Dependency: libstdc++-devel = 4.8.5-44.el7 for package: gcc-c++-4.8.5-44.el7.x86_64 --> Processing Dependency: libstdc++ = 4.8.5-44.el7 for package: gcc-c++-4.8.5-44.el7.x86_64 --> Running transaction check ---> Package libstdc++.x86_64 0:4.8.5-39.el7 will be updated ---> Package libstdc++.x86_64 0:4.8.5-44.el7 will be an update ---> Package libstdc++-devel.x86_64 0:4.8.5-44.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================================================== Installing: gcc-c++ x86_64 4.8.5-44.el7 base 7.2 M Installing for dependencies: libstdc++-devel x86_64 4.8.5-44.el7 base 1.5 M Updating for dependencies: libstdc++ x86_64 4.8.5-44.el7 base 306 k Transaction Summary ==================================================================================================================================================================== Install 1 Package (+1 Dependent package) Upgrade ( 1 Dependent package) Total download size: 9.0 M Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/3): libstdc++-4.8.5-44.el7.x86_64.rpm | 306 kB 00:00:00 (2/3): libstdc++-devel-4.8.5-44.el7.x86_64.rpm | 1.5 MB 00:00:04 gcc-c++-4.8.5-44.el7.x86_64.rp FAILED http://mirrors.aliyun.com/centos/7/os/x86_64/Packages/gcc-c%2B%2B-4.8.5-44.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; Unknown error" Trying other mirror. gcc-c++-4.8.5-44.el7.x86_64.rp FAILED http://mirrors.aliyuncs.com/centos/7/os/x86_64/Packages/gcc-c%2B%2B-4.8.5-44.el7.x86_64.rpm: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connect ion refused" Trying other mirror. gcc-c++-4.8.5-44.el7.x86_64.rp FAILED http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/Packages/gcc-c%2B%2B-4.8.5-44.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyun cs.com; Unknown error" Trying other mirror. gcc-c++-4.8.5-44.el7.x86_64.rp FAILED http://mirrors.aliyuncs.com/centos/7/os/x86_64/Packages/gcc-c%2B%2B-4.8.5-44.el7.x86_64.rpm: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connect ion refused" Trying other mirror. gcc-c++-4.8.5-44.el7.x86_64.rp FAILED http://mirrors.aliyuncs.com/centos/7/os/x86_64/Packages/gcc-c%2B%2B-4.8.5-44.el7.x86_64.rpm: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connect ion refused" Trying other mirror. gcc-c++-4.8.5-44.el7.x86_64.rp FAILED http://mirrors.aliyuncs.com/centos/7/os/x86_64/Packages/gcc-c%2B%2B-4.8.5-44.el7.x86_64.rpm: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connect ion refused" Trying other mirror. gcc-c++-4.8.5-44.el7.x86_64.rp FAILED http://mirrors.aliyuncs.com/centos/7/os/x86_64/Packages/gcc-c%2B%2B-4.8.5-44.el7.x86_64.rpm: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connect ion refused" Trying other mirror. gcc-c++-4.8.5-44.el7.x86_64.rp FAILED http://mirrors.aliyuncs.com/centos/7/os/x86_64/Packages/gcc-c%2B%2B-4.8.5-44.el7.x86_64.rpm: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connect ion refused" Trying other mirror. Error downloading packages: gcc-c++-4.8.5-44.el7.x86_64: [Errno 256] No more mirrors to try. [root@localhost pyhive]# yum install gcc-c++ -y Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.3 kB 00:00:00 * base: mirrors.aliyun.com * epel: mirrors.bfsu.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package gcc-c++.x86_64 0:4.8.5-44.el7 will be installed --> Processing Dependency: libstdc++-devel = 4.8.5-44.el7 for package: gcc-c++-4.8.5-44.el7.x86_64 --> Processing Dependency: libstdc++ = 4.8.5-44.el7 for package: gcc-c++-4.8.5-44.el7.x86_64 --> Running transaction check ---> Package libstdc++.x86_64 0:4.8.5-39.el7 will be updated ---> Package libstdc++.x86_64 0:4.8.5-44.el7 will be an update ---> Package libstdc++-devel.x86_64 0:4.8.5-44.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================================================== Installing: gcc-c++ x86_64 4.8.5-44.el7 base 7.2 M Installing for dependencies: libstdc++-devel x86_64 4.8.5-44.el7 base 1.5 M Updating for dependencies: libstdc++ x86_64 4.8.5-44.el7 base 306 k Transaction Summary ==================================================================================================================================================================== Install 1 Package (+1 Dependent package) Upgrade ( 1 Dependent package) Total size: 9.0 M Total download size: 7.2 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. gcc-c++-4.8.5-44.el7.x86_64.rpm | 7.2 MB 00:00:14 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : libstdc++-4.8.5-44.el7.x86_64 1/4 Installing : libstdc++-devel-4.8.5-44.el7.x86_64 2/4 Installing : gcc-c++-4.8.5-44.el7.x86_64 3/4 Cleanup : libstdc++-4.8.5-39.el7.x86_64 4/4 Verifying : libstdc++-4.8.5-44.el7.x86_64 1/4 Verifying : gcc-c++-4.8.5-44.el7.x86_64 2/4 Verifying : libstdc++-devel-4.8.5-44.el7.x86_64 3/4 Verifying : libstdc++-4.8.5-39.el7.x86_64 4/4 Installed: gcc-c++.x86_64 0:4.8.5-44.el7 Dependency Installed: libstdc++-devel.x86_64 0:4.8.5-44.el7 Dependency Updated: libstdc++.x86_64 0:4.8.5-44.el7 Complete! [root@localhost pyhive]# yum install gcc-c++ -y Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.3 kB 00:00:00 * base: mirrors.aliyun.com * epel: my.mirrors.thegigabit.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 Package gcc-c++-4.8.5-44.el7.x86_64 already installed and latest version Nothing to do [root@localhost pyhive]# pip3 install sasl Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting sasl Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8e/2c/45dae93d666aea8492678499e0999269b4e55f1829b1e4de5b8204706ad9/sasl-0.2.1.tar.gz (30 kB) Requirement already satisfied: six in /usr/local/python3/lib/python3.6/site-packages (from sasl) (1.15.0) Using legacy 'setup.py install' for sasl, since package 'wheel' is not installed. Installing collected packages: sasl Running setup.py install for sasl ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zpqohl9f/sasl/setup.py'"'"'; __file__='" '"'/tmp/pip-install-zpqohl9f/sasl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();ex ec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-qg0ogorh/install-record.txt --single-version-externally-managed --compile --install-he aders /usr/local/python3/include/python3.6m/sasl cwd: /tmp/pip-install-zpqohl9f/sasl/ Complete output (30 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/sasl copying sasl/__init__.py -> build/lib.linux-x86_64-3.6/sasl running egg_info writing sasl.egg-info/PKG-INFO writing dependency_links to sasl.egg-info/dependency_links.txt writing requirements to sasl.egg-info/requires.txt writing top-level names to sasl.egg-info/top_level.txt reading manifest file 'sasl.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'sasl.egg-info/SOURCES.txt' copying sasl/saslwrapper.cpp -> build/lib.linux-x86_64-3.6/sasl copying sasl/saslwrapper.h -> build/lib.linux-x86_64-3.6/sasl copying sasl/saslwrapper.pyx -> build/lib.linux-x86_64-3.6/sasl running build_ext building 'sasl.saslwrapper' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/sasl gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Isasl -I/usr/local/python3/include/python3.6m -c sasl/sa slwrapper.cpp -o build/temp.linux-x86_64-3.6/sasl/saslwrapper.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] In file included from sasl/saslwrapper.cpp:254:0: sasl/saslwrapper.h:22:23: fatal error: sasl/sasl.h: No such file or directory #include <sasl/sasl.h> ^ compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zpqohl9 f/sasl/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zpqohl9f/sasl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n '"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-qg0ogorh/install-record.txt --single-version-external ly-managed --compile --install-headers /usr/local/python3/include/python3.6m/sasl Check the logs for full command output. [root@localhost pyhive]# yum -y install python3-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=stock&content=centos error was 12: Timeout on https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=stock&content=centos: (28, 'Operation too slow. Less than 1000 bytes/sec tra nsferred the last 30 seconds') ^C Exiting on user cancel [root@localhost pyhive]# yum -y install python3-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.3 kB 00:00:00 * base: mirrors.aliyun.com * epel: hkg.mirror.rackspace.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com http://mirrors.aliyun.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; Unknown error" Trying other mirror. http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error" Trying other mirror. ^Chttp://mirrors.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#56 - "Callback aborted" Trying other mirror. extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package python3-devel.x86_64 0:3.6.8-17.el7 will be installed --> Processing Dependency: python3-libs(x86-64) = 3.6.8-17.el7 for package: python3-devel-3.6.8-17.el7.x86_64 --> Processing Dependency: python3 = 3.6.8-17.el7 for package: python3-devel-3.6.8-17.el7.x86_64 --> Processing Dependency: python(abi) = 3.6 for package: python3-devel-3.6.8-17.el7.x86_64 --> Processing Dependency: redhat-rpm-config for package: python3-devel-3.6.8-17.el7.x86_64 --> Processing Dependency: python3-rpm-macros for package: python3-devel-3.6.8-17.el7.x86_64 --> Processing Dependency: python3-rpm-generators for package: python3-devel-3.6.8-17.el7.x86_64 --> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-devel-3.6.8-17.el7.x86_64 --> Running transaction check ---> Package python3.x86_64 0:3.6.8-17.el7 will be installed --> Processing Dependency: python3-setuptools for package: python3-3.6.8-17.el7.x86_64 --> Processing Dependency: python3-pip for package: python3-3.6.8-17.el7.x86_64 ---> Package python3-libs.x86_64 0:3.6.8-17.el7 will be installed --> Processing Dependency: libtirpc.so.1()(64bit) for package: python3-libs-3.6.8-17.el7.x86_64 ---> Package python3-rpm-generators.noarch 0:6-2.el7 will be installed ---> Package python3-rpm-macros.noarch 0:3-34.el7 will be installed ---> Package redhat-rpm-config.noarch 0:9.1.0-88.el7.centos will be installed --> Processing Dependency: dwz >= 0.4 for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch --> Processing Dependency: zip for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch --> Processing Dependency: perl-srpm-macros for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch --> Running transaction check ---> Package dwz.x86_64 0:0.11-3.el7 will be installed ---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed ---> Package perl-srpm-macros.noarch 0:1-8.el7 will be installed ---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed ---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed ---> Package zip.x86_64 0:3.0-11.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================================================== Installing: python3-devel x86_64 3.6.8-17.el7 base 217 k Installing for dependencies: dwz x86_64 0.11-3.el7 base 99 k libtirpc x86_64 0.2.4-0.16.el7 base 89 k perl-srpm-macros noarch 1-8.el7 base 4.6 k python3 x86_64 3.6.8-17.el7 base 70 k python3-libs x86_64 3.6.8-17.el7 base 6.9 M python3-pip noarch 9.0.3-8.el7 base 1.6 M python3-rpm-generators noarch 6-2.el7 base 20 k python3-rpm-macros noarch 3-34.el7 base 8.1 k python3-setuptools noarch 39.2.0-10.el7 base 629 k redhat-rpm-config noarch 9.1.0-88.el7.centos base 81 k zip x86_64 3.0-11.el7 base 260 k Transaction Summary ==================================================================================================================================================================== Install 1 Package (+11 Dependent packages) Total download size: 10 M Installed size: 49 M Downloading packages: (1/12): libtirpc-0.2.4-0.16.el7.x86_64.rpm | 89 kB 00:00:03 (2/12): dwz-0.11-3.el7.x86_64.rpm | 99 kB 00:00:04 (3/12): python3-3.6.8-17.el7.x86_64.rpm | 70 kB 00:00:00 (4/12): perl-srpm-macros-1-8.el7.noarch.rpm | 4.6 kB 00:00:02 (5/12): python3-devel-3.6.8-17.el7.x86_64.rpm | 217 kB 00:00:08 (6/12): python3-pip-9.0.3-8.el7.noarch.rpm | 1.6 MB 00:00:15 (7/12): python3-rpm-generators-6-2.el7.noarch.rpm | 20 kB 00:00:00 (8/12): python3-rpm-macros-3-34.el7.noarch.rpm | 8.1 kB 00:00:00 (9/12): python3-setuptools-39.2.0-10.el7.noarch.rpm | 629 kB 00:00:01 (10/12): redhat-rpm-config-9.1.0-88.el7.centos.noarch.rpm | 81 kB 00:00:00 (11/12): zip-3.0-11.el7.x86_64.rpm | 260 kB 00:00:00 (12/12): python3-libs-3.6.8-17.el7.x86_64.rpm | 6.9 MB 00:00:34 -------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 253 kB/s | 10 MB 00:00:40 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : python3-rpm-macros-3-34.el7.noarch 1/12 Installing : dwz-0.11-3.el7.x86_64 2/12 Installing : zip-3.0-11.el7.x86_64 3/12 Installing : perl-srpm-macros-1-8.el7.noarch 4/12 Installing : redhat-rpm-config-9.1.0-88.el7.centos.noarch 5/12 Installing : libtirpc-0.2.4-0.16.el7.x86_64 6/12 Installing : python3-setuptools-39.2.0-10.el7.noarch 7/12 Installing : python3-pip-9.0.3-8.el7.noarch 8/12 Installing : python3-3.6.8-17.el7.x86_64 9/12 Installing : python3-libs-3.6.8-17.el7.x86_64 10/12 Installing : python3-rpm-generators-6-2.el7.noarch 11/12 Installing : python3-devel-3.6.8-17.el7.x86_64 12/12 Verifying : libtirpc-0.2.4-0.16.el7.x86_64 1/12 Verifying : python3-rpm-generators-6-2.el7.noarch 2/12 Verifying : perl-srpm-macros-1-8.el7.noarch 3/12 Verifying : python3-libs-3.6.8-17.el7.x86_64 4/12 Verifying : zip-3.0-11.el7.x86_64 5/12 Verifying : python3-devel-3.6.8-17.el7.x86_64 6/12 Verifying : dwz-0.11-3.el7.x86_64 7/12 Verifying : python3-rpm-macros-3-34.el7.noarch 8/12 Verifying : python3-setuptools-39.2.0-10.el7.noarch 9/12 Verifying : python3-pip-9.0.3-8.el7.noarch 10/12 Verifying : python3-3.6.8-17.el7.x86_64 11/12 Verifying : redhat-rpm-config-9.1.0-88.el7.centos.noarch 12/12 Installed: python3-devel.x86_64 0:3.6.8-17.el7 Dependency Installed: dwz.x86_64 0:0.11-3.el7 libtirpc.x86_64 0:0.2.4-0.16.el7 perl-srpm-macros.noarch 0:1-8.el7 python3.x86_64 0:3.6.8-17.el7 python3-libs.x86_64 0:3.6.8-17.el7 python3-pip.noarch 0:9.0.3-8.el7 python3-rpm-generators.noarch 0:6-2.el7 python3-rpm-macros.noarch 0:3-34.el7 python3-setuptools.noarch 0:39.2.0-10.el7 redhat-rpm-config.noarch 0:9.1.0-88.el7.centos zip.x86_64 0:3.0-11.el7 Complete! [root@localhost pyhive]# pip3 install sasl Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting sasl Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8e/2c/45dae93d666aea8492678499e0999269b4e55f1829b1e4de5b8204706ad9/sasl-0.2.1.tar.gz (30 kB) Requirement already satisfied: six in /usr/local/python3/lib/python3.6/site-packages (from sasl) (1.15.0) Using legacy 'setup.py install' for sasl, since package 'wheel' is not installed. Installing collected packages: sasl Running setup.py install for sasl ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7jjew3r4/sasl/setup.py'"'"'; __file__='" '"'/tmp/pip-install-7jjew3r4/sasl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();ex ec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-e14150ee/install-record.txt --single-version-externally-managed --compile --install-he aders /usr/local/python3/include/python3.6m/sasl cwd: /tmp/pip-install-7jjew3r4/sasl/ Complete output (30 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/sasl copying sasl/__init__.py -> build/lib.linux-x86_64-3.6/sasl running egg_info writing sasl.egg-info/PKG-INFO writing dependency_links to sasl.egg-info/dependency_links.txt writing requirements to sasl.egg-info/requires.txt writing top-level names to sasl.egg-info/top_level.txt reading manifest file 'sasl.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'sasl.egg-info/SOURCES.txt' copying sasl/saslwrapper.cpp -> build/lib.linux-x86_64-3.6/sasl copying sasl/saslwrapper.h -> build/lib.linux-x86_64-3.6/sasl copying sasl/saslwrapper.pyx -> build/lib.linux-x86_64-3.6/sasl running build_ext building 'sasl.saslwrapper' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/sasl gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Isasl -I/usr/local/python3/include/python3.6m -c sasl/sa slwrapper.cpp -o build/temp.linux-x86_64-3.6/sasl/saslwrapper.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] In file included from sasl/saslwrapper.cpp:254:0: sasl/saslwrapper.h:22:23: fatal error: sasl/sasl.h: No such file or directory #include <sasl/sasl.h> ^ compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7jjew3r 4/sasl/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7jjew3r4/sasl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n '"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-e14150ee/install-record.txt --single-version-external ly-managed --compile --install-headers /usr/local/python3/include/python3.6m/sasl Check the logs for full command output. [root@localhost pyhive]# [root@localhost pyhive]# yum -y install cyrus-sasl cyrus-sasl-devel cyrus-sasl-lib Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.3 kB 00:00:00 * base: mirrors.aliyun.com * epel: mirrors.bfsu.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 Package cyrus-sasl-lib-2.1.26-23.el7.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package cyrus-sasl.x86_64 0:2.1.26-23.el7 will be installed ---> Package cyrus-sasl-devel.x86_64 0:2.1.26-23.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================================================== Installing: cyrus-sasl x86_64 2.1.26-23.el7 base 88 k cyrus-sasl-devel x86_64 2.1.26-23.el7 base 310 k Transaction Summary ==================================================================================================================================================================== Install 2 Packages Total download size: 398 k Installed size: 1.1 M Downloading packages: (1/2): cyrus-sasl-2.1.26-23.el7.x86_64.rpm | 88 kB 00:00:00 (2/2): cyrus-sasl-devel-2.1.26-23.el7.x86_64.rpm | 310 kB 00:00:00 -------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 1.3 MB/s | 398 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : cyrus-sasl-2.1.26-23.el7.x86_64 1/2 Installing : cyrus-sasl-devel-2.1.26-23.el7.x86_64 2/2 Verifying : cyrus-sasl-devel-2.1.26-23.el7.x86_64 1/2 Verifying : cyrus-sasl-2.1.26-23.el7.x86_64 2/2 Installed: cyrus-sasl.x86_64 0:2.1.26-23.el7 cyrus-sasl-devel.x86_64 0:2.1.26-23.el7 Complete! [root@localhost pyhive]# pip3 install sasl Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting sasl Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8e/2c/45dae93d666aea8492678499e0999269b4e55f1829b1e4de5b8204706ad9/sasl-0.2.1.tar.gz (30 kB) Requirement already satisfied: six in /usr/local/python3/lib/python3.6/site-packages (from sasl) (1.15.0) Using legacy 'setup.py install' for sasl, since package 'wheel' is not installed. Installing collected packages: sasl Running setup.py install for sasl ... done Successfully installed sasl-0.2.1 [root@localhost pyhive]# pip3 install thrift_sasl Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting thrift_sasl Downloading https://pypi.tuna.tsinghua.edu.cn/packages/73/d3/588654faef5511afadc1a091d32fcdbb24ae5f2d90b380874aee68a717f9/thrift_sasl-0.4.2.tar.gz (3.9 kB) Requirement already satisfied: thrift>=0.10.0 in /usr/local/python3/lib/python3.6/site-packages (from thrift_sasl) (0.13.0) Requirement already satisfied: sasl>=0.2.1 in /usr/local/python3/lib/python3.6/site-packages (from thrift_sasl) (0.2.1) Requirement already satisfied: six>=1.13.0 in /usr/local/python3/lib/python3.6/site-packages (from thrift_sasl) (1.15.0) Using legacy 'setup.py install' for thrift-sasl, since package 'wheel' is not installed. Installing collected packages: thrift-sasl Running setup.py install for thrift-sasl ... done Successfully installed thrift-sasl-0.4.2 [root@localhost pyhive]# ls future-0.18.2.tar.gz PyHive-0.6.3.tar.gz python_dateutil-2.8.1-py2.py3-none-any.whl requirements.txt six-1.15.0-py2.py3-none-any.whl thrift-0.13.0.tar.gz [root@localhost pyhive]# pip3 freeze > requirements.txt [root@localhost pyhive]# pip3 download -d /soft/pyhive -r requirements.txt Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting future==0.18.2 File was already downloaded /soft/pyhive/future-0.18.2.tar.gz Collecting PyHive==0.6.3 File was already downloaded /soft/pyhive/PyHive-0.6.3.tar.gz Collecting python-dateutil==2.8.1 File was already downloaded /soft/pyhive/python_dateutil-2.8.1-py2.py3-none-any.whl Collecting sasl==0.2.1 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8e/2c/45dae93d666aea8492678499e0999269b4e55f1829b1e4de5b8204706ad9/sasl-0.2.1.tar.gz (30 kB) Saved ./sasl-0.2.1.tar.gz Collecting six==1.15.0 File was already downloaded /soft/pyhive/six-1.15.0-py2.py3-none-any.whl Collecting thrift==0.13.0 File was already downloaded /soft/pyhive/thrift-0.13.0.tar.gz Collecting thrift-sasl==0.4.2 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/73/d3/588654faef5511afadc1a091d32fcdbb24ae5f2d90b380874aee68a717f9/thrift_sasl-0.4.2.tar.gz (3.9 kB) Saved ./thrift_sasl-0.4.2.tar.gz Successfully downloaded future PyHive python-dateutil sasl six thrift thrift-sasl [root@localhost pyhive]# pip3 wheel -w /soft/pyhive -r requirements.txt Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting future==0.18.2 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829 kB) |████████████████████████████████| 829 kB 72 kB/s Collecting PyHive==0.6.3 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f8/f3/666dd810fa88c3cb9fea2c39817242036dee963ff62291f7c0f8fe34a8e1/PyHive-0.6.3.tar.gz (41 kB) |████████████████████████████████| 41 kB 1.3 MB/s Collecting python-dateutil==2.8.1 File was already downloaded /soft/pyhive/python_dateutil-2.8.1-py2.py3-none-any.whl Collecting sasl==0.2.1 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8e/2c/45dae93d666aea8492678499e0999269b4e55f1829b1e4de5b8204706ad9/sasl-0.2.1.tar.gz (30 kB) Collecting six==1.15.0 File was already downloaded /soft/pyhive/six-1.15.0-py2.py3-none-any.whl Collecting thrift==0.13.0 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/97/1e/3284d19d7be99305eda145b8aa46b0c33244e4a496ec66440dac19f8274d/thrift-0.13.0.tar.gz (59 kB) |████████████████████████████████| 59 kB 4.0 MB/s Collecting thrift-sasl==0.4.2 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/73/d3/588654faef5511afadc1a091d32fcdbb24ae5f2d90b380874aee68a717f9/thrift_sasl-0.4.2.tar.gz (3.9 kB) Skipping python-dateutil, due to already being wheel. Skipping six, due to already being wheel. Building wheels for collected packages: future, PyHive, sasl, thrift, thrift-sasl Building wheel for future (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-x564lzqj/future/setup.py'"'"'; __file__='"'" '/tmp/pip-wheel-x564lzqj/future/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec (compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-3s0le6a4 cwd: /tmp/pip-wheel-x564lzqj/future/ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Failed building wheel for future Running setup.py clean for future Building wheel for PyHive (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-x564lzqj/pyhive/setup.py'"'"'; __file__='"'" '/tmp/pip-wheel-x564lzqj/pyhive/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec (compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-efndgh9m cwd: /tmp/pip-wheel-x564lzqj/pyhive/ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Failed building wheel for PyHive Running setup.py clean for PyHive Building wheel for sasl (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-x564lzqj/sasl/setup.py'"'"'; __file__='"'"'/ tmp/pip-wheel-x564lzqj/sasl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(com pile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-y268m11w cwd: /tmp/pip-wheel-x564lzqj/sasl/ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Failed building wheel for sasl Running setup.py clean for sasl Building wheel for thrift (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-x564lzqj/thrift/setup.py'"'"'; __file__='"'" '/tmp/pip-wheel-x564lzqj/thrift/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec (compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-760kiyvr cwd: /tmp/pip-wheel-x564lzqj/thrift/ Complete output (8 lines): /usr/local/python3/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Failed building wheel for thrift Running setup.py clean for thrift Building wheel for thrift-sasl (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-x564lzqj/thrift-sasl/setup.py'"'"'; __file__ ='"'"'/tmp/pip-wheel-x564lzqj/thrift-sasl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.cl ose();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-s4pzdnhj cwd: /tmp/pip-wheel-x564lzqj/thrift-sasl/ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Failed building wheel for thrift-sasl Running setup.py clean for thrift-sasl Failed to build future PyHive sasl thrift thrift-sasl ERROR: Failed to build one or more wheels [root@localhost pyhive]# ls future-0.18.2.tar.gz python_dateutil-2.8.1-py2.py3-none-any.whl sasl-0.2.1.tar.gz thrift-0.13.0.tar.gz PyHive-0.6.3.tar.gz requirements.txt six-1.15.0-py2.py3-none-any.whl thrift_sasl-0.4.2.tar.gz [root@localhost pyhive]# cat requirements.txt future==0.18.2 PyHive==0.6.3 python-dateutil==2.8.1 sasl==0.2.1 six==1.15.0 thrift==0.13.0 thrift-sasl==0.4.2 [root@localhost pyhive]# ls future-0.18.2.tar.gz python_dateutil-2.8.1-py2.py3-none-any.whl sasl-0.2.1.tar.gz thrift-0.13.0.tar.gz PyHive-0.6.3.tar.gz requirements.txt six-1.15.0-py2.py3-none-any.whl thrift_sasl-0.4.2.tar.gz [root@localhost pyhive]# cd .. [root@localhost soft]# ls base epel extras pyhive timedhosts timedhosts.txt updates [root@localhost soft]# cd base/packages/ [root@localhost packages]# ls bzip2-devel-1.0.6-13.el7.x86_64.rpm libsepol-devel-2.5-10.el7.x86_64.rpm perl-Pod-Usage-1.63-3.el7.noarch.rpm cpp-4.8.5-44.el7.x86_64.rpm libsmartcols-2.23.2-65.el7.x86_64.rpm perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm cyrus-sasl-2.1.26-23.el7.x86_64.rpm libss-1.42.9-19.el7.x86_64.rpm perl-Socket-2.010-5.el7.x86_64.rpm cyrus-sasl-devel-2.1.26-23.el7.x86_64.rpm libstdc++-4.8.5-44.el7.x86_64.rpm perl-srpm-macros-1-8.el7.noarch.rpm dejavu-fonts-common-2.33-6.el7.noarch.rpm libstdc++-devel-4.8.5-44.el7.x86_64.rpm perl-Storable-2.45-3.el7.x86_64.rpm dejavu-sans-fonts-2.33-6.el7.noarch.rpm libtirpc-0.2.4-0.16.el7.x86_64.rpm perl-Text-ParseWords-3.29-4.el7.noarch.rpm dwz-0.11-3.el7.x86_64.rpm libuuid-2.23.2-65.el7.x86_64.rpm perl-threads-1.87-4.el7.x86_64.rpm e2fsprogs-1.42.9-19.el7.x86_64.rpm libuuid-devel-2.23.2-65.el7.x86_64.rpm perl-threads-shared-1.43-6.el7.x86_64.rpm e2fsprogs-libs-1.42.9-19.el7.x86_64.rpm libverto-devel-0.2.5-4.el7.x86_64.rpm perl-Time-HiRes-1.9725-3.el7.x86_64.rpm expat-2.1.0-12.el7.x86_64.rpm libXau-1.0.8-2.1.el7.x86_64.rpm perl-Time-Local-1.2300-2.el7.noarch.rpm expat-devel-2.1.0-12.el7.x86_64.rpm libXau-devel-1.0.8-2.1.el7.x86_64.rpm python-2.7.5-89.el7.x86_64.rpm fontconfig-2.13.0-4.3.el7.x86_64.rpm libxcb-1.13-1.el7.x86_64.rpm python2-rpm-macros-3-34.el7.noarch.rpm fontconfig-devel-2.13.0-4.3.el7.x86_64.rpm libxcb-devel-1.13-1.el7.x86_64.rpm python3-3.6.8-17.el7.x86_64.rpm fontpackages-filesystem-1.44-8.el7.noarch.rpm libXft-2.3.2-2.el7.x86_64.rpm python3-devel-3.6.8-17.el7.x86_64.rpm gcc-4.8.5-44.el7.x86_64.rpm libXft-devel-2.3.2-2.el7.x86_64.rpm python3-libs-3.6.8-17.el7.x86_64.rpm gcc-c++-4.8.5-44.el7.x86_64.rpm libXrender-0.9.10-1.el7.x86_64.rpm python3-pip-9.0.3-8.el7.noarch.rpm gdbm-devel-1.10-8.el7.x86_64.rpm libXrender-devel-0.9.10-1.el7.x86_64.rpm python3-rpm-generators-6-2.el7.noarch.rpm glibc-2.17-317.el7.x86_64.rpm mpfr-3.1.1-4.el7.x86_64.rpm python3-rpm-macros-3-34.el7.noarch.rpm glibc-common-2.17-317.el7.x86_64.rpm ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm python3-setuptools-39.2.0-10.el7.noarch.rpm glibc-devel-2.17-317.el7.x86_64.rpm openssl-devel-1.0.2k-19.el7.x86_64.rpm python-devel-2.7.5-89.el7.x86_64.rpm glibc-headers-2.17-317.el7.x86_64.rpm pcre-devel-8.32-17.el7.x86_64.rpm python-libs-2.7.5-89.el7.x86_64.rpm gpm-libs-1.20.7-6.el7.x86_64.rpm perl-5.16.3-297.el7.x86_64.rpm python-rpm-macros-3-34.el7.noarch.rpm keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm perl-Carp-1.26-244.el7.noarch.rpm python-srpm-macros-3-34.el7.noarch.rpm krb5-devel-1.15.1-50.el7.x86_64.rpm perl-constant-1.27-2.el7.noarch.rpm readline-devel-6.2-11.el7.x86_64.rpm krb5-libs-1.15.1-50.el7.x86_64.rpm perl-Encode-2.51-7.el7.x86_64.rpm redhat-rpm-config-9.1.0-88.el7.centos.noarch.rpm libblkid-2.23.2-65.el7.x86_64.rpm perl-Exporter-5.68-3.el7.noarch.rpm sqlite-devel-3.7.17-8.el7_7.1.x86_64.rpm libcom_err-1.42.9-19.el7.x86_64.rpm perl-File-Path-2.09-2.el7.noarch.rpm tcl-8.5.13-8.el7.x86_64.rpm libcom_err-devel-1.42.9-19.el7.x86_64.rpm perl-File-Temp-0.23.01-3.el7.noarch.rpm tcl-devel-8.5.13-8.el7.x86_64.rpm libffi-devel-3.0.13-19.el7.x86_64.rpm perl-Filter-1.49-3.el7.x86_64.rpm tk-8.5.13-6.el7.x86_64.rpm libgcc-4.8.5-44.el7.x86_64.rpm perl-Getopt-Long-2.40-3.el7.noarch.rpm tk-devel-8.5.13-6.el7.x86_64.rpm libgomp-4.8.5-44.el7.x86_64.rpm perl-HTTP-Tiny-0.033-3.el7.noarch.rpm util-linux-2.23.2-65.el7.x86_64.rpm libkadm5-1.15.1-50.el7.x86_64.rpm perl-libs-5.16.3-297.el7.x86_64.rpm vim-common-7.4.629-7.el7.x86_64.rpm libmount-2.23.2-65.el7.x86_64.rpm perl-macros-5.16.3-297.el7.x86_64.rpm vim-enhanced-7.4.629-7.el7.x86_64.rpm libmpc-1.0.1-3.el7.x86_64.rpm perl-parent-0.225-244.el7.noarch.rpm vim-filesystem-7.4.629-7.el7.x86_64.rpm libpcap-1.5.3-12.el7.x86_64.rpm perl-PathTools-3.40-5.el7.x86_64.rpm xorg-x11-proto-devel-2018.4-1.el7.noarch.rpm libpcap-devel-1.5.3-12.el7.x86_64.rpm perl-Pod-Escapes-1.04-297.el7.noarch.rpm xz-devel-5.2.2-1.el7.x86_64.rpm libpng-1.5.13-8.el7.x86_64.rpm perl-podlators-2.5.1-3.el7.noarch.rpm zip-3.0-11.el7.x86_64.rpm libpng-devel-1.5.13-8.el7.x86_64.rpm perl-Pod-Perldoc-3.20-4.el7.noarch.rpm zlib-devel-1.2.7-18.el7.x86_64.rpm libselinux-devel-2.5-15.el7.x86_64.rpm perl-Pod-Simple-3.28-4.el7.noarch.rpm [root@localhost packages]# cd .. [root@localhost base]# yum -y install createrepo Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.3 kB 00:00:00 * base: mirrors.aliyun.com * epel: mirrors.bfsu.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com http://mirrors.aliyun.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; Unknown error" Trying other mirror. http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error" Trying other mirror. ^Chttp://mirrors.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#56 - "Callback aborted" Trying other mirror. extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package createrepo.noarch 0:0.9.9-28.el7 will be installed --> Processing Dependency: python-deltarpm for package: createrepo-0.9.9-28.el7.noarch --> Processing Dependency: libxml2-python for package: createrepo-0.9.9-28.el7.noarch --> Processing Dependency: deltarpm for package: createrepo-0.9.9-28.el7.noarch --> Running transaction check ---> Package deltarpm.x86_64 0:3.6-3.el7 will be installed ---> Package libxml2-python.x86_64 0:2.9.1-6.el7.5 will be installed --> Processing Dependency: libxml2 = 2.9.1-6.el7.5 for package: libxml2-python-2.9.1-6.el7.5.x86_64 ---> Package python-deltarpm.x86_64 0:3.6-3.el7 will be installed --> Running transaction check ---> Package libxml2.x86_64 0:2.9.1-6.el7.4 will be updated ---> Package libxml2.x86_64 0:2.9.1-6.el7.5 will be an update ^[[5~--> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================================================== Installing: createrepo noarch 0.9.9-28.el7 base 94 k Installing for dependencies: deltarpm x86_64 3.6-3.el7 base 82 k libxml2-python x86_64 2.9.1-6.el7.5 base 247 k python-deltarpm x86_64 3.6-3.el7 base 31 k Updating for dependencies: libxml2 x86_64 2.9.1-6.el7.5 base 668 k Transaction Summary ==================================================================================================================================================================== Install 1 Package (+3 Dependent packages) Upgrade ( 1 Dependent package) Total download size: 1.1 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/5): createrepo-0.9.9-28.el7.noarch.rpm | 94 kB 00:00:00 (2/5): deltarpm-3.6-3.el7.x86_64.rpm | 82 kB 00:00:00 (3/5): libxml2-python-2.9.1-6.el7.5.x86_64.rpm | 247 kB 00:00:00 (4/5): libxml2-2.9.1-6.el7.5.x86_64.rpm | 668 kB 00:00:00 (5/5): python-deltarpm-3.6-3.el7.x86_64.rpm | 31 kB 00:00:00 -------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 933 kB/s | 1.1 MB 00:00:01 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : deltarpm-3.6-3.el7.x86_64 1/6 Installing : python-deltarpm-3.6-3.el7.x86_64 2/6 Updating : libxml2-2.9.1-6.el7.5.x86_64 3/6 Installing : libxml2-python-2.9.1-6.el7.5.x86_64 4/6 Installing : createrepo-0.9.9-28.el7.noarch 5/6 Cleanup : libxml2-2.9.1-6.el7.4.x86_64 6/6 Verifying : libxml2-python-2.9.1-6.el7.5.x86_64 1/6 Verifying : libxml2-2.9.1-6.el7.5.x86_64 2/6 Verifying : python-deltarpm-3.6-3.el7.x86_64 3/6 Verifying : deltarpm-3.6-3.el7.x86_64 4/6 Verifying : createrepo-0.9.9-28.el7.noarch 5/6 Verifying : libxml2-2.9.1-6.el7.4.x86_64 6/6 Installed: createrepo.noarch 0:0.9.9-28.el7 Dependency Installed: deltarpm.x86_64 0:3.6-3.el7 libxml2-python.x86_64 0:2.9.1-6.el7.5 python-deltarpm.x86_64 0:3.6-3.el7 Dependency Updated: libxml2.x86_64 0:2.9.1-6.el7.5 Complete! [root@localhost base]# createrepo packages/ Spawning worker 0 with 61 pkgs Spawning worker 1 with 60 pkgs Workers Finished Saving Primary metadata Saving file lists metadata Saving other metadata Generating sqlite DBs Sqlite DBs complete [root@localhost base]# cd packages/ [root@localhost packages]# ls bzip2-devel-1.0.6-13.el7.x86_64.rpm libsepol-devel-2.5-10.el7.x86_64.rpm perl-Pod-Usage-1.63-3.el7.noarch.rpm cpp-4.8.5-44.el7.x86_64.rpm libsmartcols-2.23.2-65.el7.x86_64.rpm perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm createrepo-0.9.9-28.el7.noarch.rpm libss-1.42.9-19.el7.x86_64.rpm perl-Socket-2.010-5.el7.x86_64.rpm cyrus-sasl-2.1.26-23.el7.x86_64.rpm libstdc++-4.8.5-44.el7.x86_64.rpm perl-srpm-macros-1-8.el7.noarch.rpm cyrus-sasl-devel-2.1.26-23.el7.x86_64.rpm libstdc++-devel-4.8.5-44.el7.x86_64.rpm perl-Storable-2.45-3.el7.x86_64.rpm dejavu-fonts-common-2.33-6.el7.noarch.rpm libtirpc-0.2.4-0.16.el7.x86_64.rpm perl-Text-ParseWords-3.29-4.el7.noarch.rpm dejavu-sans-fonts-2.33-6.el7.noarch.rpm libuuid-2.23.2-65.el7.x86_64.rpm perl-threads-1.87-4.el7.x86_64.rpm deltarpm-3.6-3.el7.x86_64.rpm libuuid-devel-2.23.2-65.el7.x86_64.rpm perl-threads-shared-1.43-6.el7.x86_64.rpm dwz-0.11-3.el7.x86_64.rpm libverto-devel-0.2.5-4.el7.x86_64.rpm perl-Time-HiRes-1.9725-3.el7.x86_64.rpm e2fsprogs-1.42.9-19.el7.x86_64.rpm libXau-1.0.8-2.1.el7.x86_64.rpm perl-Time-Local-1.2300-2.el7.noarch.rpm e2fsprogs-libs-1.42.9-19.el7.x86_64.rpm libXau-devel-1.0.8-2.1.el7.x86_64.rpm python-2.7.5-89.el7.x86_64.rpm expat-2.1.0-12.el7.x86_64.rpm libxcb-1.13-1.el7.x86_64.rpm python2-rpm-macros-3-34.el7.noarch.rpm expat-devel-2.1.0-12.el7.x86_64.rpm libxcb-devel-1.13-1.el7.x86_64.rpm python3-3.6.8-17.el7.x86_64.rpm fontconfig-2.13.0-4.3.el7.x86_64.rpm libXft-2.3.2-2.el7.x86_64.rpm python3-devel-3.6.8-17.el7.x86_64.rpm fontconfig-devel-2.13.0-4.3.el7.x86_64.rpm libXft-devel-2.3.2-2.el7.x86_64.rpm python3-libs-3.6.8-17.el7.x86_64.rpm fontpackages-filesystem-1.44-8.el7.noarch.rpm libxml2-2.9.1-6.el7.5.x86_64.rpm python3-pip-9.0.3-8.el7.noarch.rpm gcc-4.8.5-44.el7.x86_64.rpm libxml2-python-2.9.1-6.el7.5.x86_64.rpm python3-rpm-generators-6-2.el7.noarch.rpm gcc-c++-4.8.5-44.el7.x86_64.rpm libXrender-0.9.10-1.el7.x86_64.rpm python3-rpm-macros-3-34.el7.noarch.rpm gdbm-devel-1.10-8.el7.x86_64.rpm libXrender-devel-0.9.10-1.el7.x86_64.rpm python3-setuptools-39.2.0-10.el7.noarch.rpm glibc-2.17-317.el7.x86_64.rpm mpfr-3.1.1-4.el7.x86_64.rpm python-deltarpm-3.6-3.el7.x86_64.rpm glibc-common-2.17-317.el7.x86_64.rpm ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm python-devel-2.7.5-89.el7.x86_64.rpm glibc-devel-2.17-317.el7.x86_64.rpm openssl-devel-1.0.2k-19.el7.x86_64.rpm python-libs-2.7.5-89.el7.x86_64.rpm glibc-headers-2.17-317.el7.x86_64.rpm pcre-devel-8.32-17.el7.x86_64.rpm python-rpm-macros-3-34.el7.noarch.rpm gpm-libs-1.20.7-6.el7.x86_64.rpm perl-5.16.3-297.el7.x86_64.rpm python-srpm-macros-3-34.el7.noarch.rpm keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm perl-Carp-1.26-244.el7.noarch.rpm readline-devel-6.2-11.el7.x86_64.rpm krb5-devel-1.15.1-50.el7.x86_64.rpm perl-constant-1.27-2.el7.noarch.rpm redhat-rpm-config-9.1.0-88.el7.centos.noarch.rpm krb5-libs-1.15.1-50.el7.x86_64.rpm perl-Encode-2.51-7.el7.x86_64.rpm repodata libblkid-2.23.2-65.el7.x86_64.rpm perl-Exporter-5.68-3.el7.noarch.rpm sqlite-devel-3.7.17-8.el7_7.1.x86_64.rpm libcom_err-1.42.9-19.el7.x86_64.rpm perl-File-Path-2.09-2.el7.noarch.rpm tcl-8.5.13-8.el7.x86_64.rpm libcom_err-devel-1.42.9-19.el7.x86_64.rpm perl-File-Temp-0.23.01-3.el7.noarch.rpm tcl-devel-8.5.13-8.el7.x86_64.rpm libffi-devel-3.0.13-19.el7.x86_64.rpm perl-Filter-1.49-3.el7.x86_64.rpm tk-8.5.13-6.el7.x86_64.rpm libgcc-4.8.5-44.el7.x86_64.rpm perl-Getopt-Long-2.40-3.el7.noarch.rpm tk-devel-8.5.13-6.el7.x86_64.rpm libgomp-4.8.5-44.el7.x86_64.rpm perl-HTTP-Tiny-0.033-3.el7.noarch.rpm util-linux-2.23.2-65.el7.x86_64.rpm libkadm5-1.15.1-50.el7.x86_64.rpm perl-libs-5.16.3-297.el7.x86_64.rpm vim-common-7.4.629-7.el7.x86_64.rpm libmount-2.23.2-65.el7.x86_64.rpm perl-macros-5.16.3-297.el7.x86_64.rpm vim-enhanced-7.4.629-7.el7.x86_64.rpm libmpc-1.0.1-3.el7.x86_64.rpm perl-parent-0.225-244.el7.noarch.rpm vim-filesystem-7.4.629-7.el7.x86_64.rpm libpcap-1.5.3-12.el7.x86_64.rpm perl-PathTools-3.40-5.el7.x86_64.rpm xorg-x11-proto-devel-2018.4-1.el7.noarch.rpm libpcap-devel-1.5.3-12.el7.x86_64.rpm perl-Pod-Escapes-1.04-297.el7.noarch.rpm xz-devel-5.2.2-1.el7.x86_64.rpm libpng-1.5.13-8.el7.x86_64.rpm perl-podlators-2.5.1-3.el7.noarch.rpm zip-3.0-11.el7.x86_64.rpm libpng-devel-1.5.13-8.el7.x86_64.rpm perl-Pod-Perldoc-3.20-4.el7.noarch.rpm zlib-devel-1.2.7-18.el7.x86_64.rpm libselinux-devel-2.5-15.el7.x86_64.rpm perl-Pod-Simple-3.28-4.el7.noarch.rpm [root@localhost packages]# cd .. [root@localhost base]# cp packages ../ cp: omitting directory ‘packages’ [root@localhost base]# ls 6d0c3a488c282fe537794b5946b01e28c7f44db79097bb06826e1c0c88bad5ef-primary.sqlite.bz2 gen a4e2b46586aa556c3b6f814dad5b16db5a669984d66b68e873586cd7c7253301-c7-x86_64-comps.xml.gz mirrorlist.txt cachecookie packages d6d94c7d406fe7ad4902a97104b39a0d8299451832a97f31d71653ba982c955b-filelists.sqlite.bz2 repomd.xml ecaab5cc3b9c10fefe6be2ecbf6f9fcb437231dac3e82cab8d9d2cf70e99644d-other.sqlite.bz2 [root@localhost base]# cd packages/ [root@localhost packages]# ls bzip2-devel-1.0.6-13.el7.x86_64.rpm libsepol-devel-2.5-10.el7.x86_64.rpm perl-Pod-Usage-1.63-3.el7.noarch.rpm cpp-4.8.5-44.el7.x86_64.rpm libsmartcols-2.23.2-65.el7.x86_64.rpm perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm createrepo-0.9.9-28.el7.noarch.rpm libss-1.42.9-19.el7.x86_64.rpm perl-Socket-2.010-5.el7.x86_64.rpm cyrus-sasl-2.1.26-23.el7.x86_64.rpm libstdc++-4.8.5-44.el7.x86_64.rpm perl-srpm-macros-1-8.el7.noarch.rpm cyrus-sasl-devel-2.1.26-23.el7.x86_64.rpm libstdc++-devel-4.8.5-44.el7.x86_64.rpm perl-Storable-2.45-3.el7.x86_64.rpm dejavu-fonts-common-2.33-6.el7.noarch.rpm libtirpc-0.2.4-0.16.el7.x86_64.rpm perl-Text-ParseWords-3.29-4.el7.noarch.rpm dejavu-sans-fonts-2.33-6.el7.noarch.rpm libuuid-2.23.2-65.el7.x86_64.rpm perl-threads-1.87-4.el7.x86_64.rpm deltarpm-3.6-3.el7.x86_64.rpm libuuid-devel-2.23.2-65.el7.x86_64.rpm perl-threads-shared-1.43-6.el7.x86_64.rpm dwz-0.11-3.el7.x86_64.rpm libverto-devel-0.2.5-4.el7.x86_64.rpm perl-Time-HiRes-1.9725-3.el7.x86_64.rpm e2fsprogs-1.42.9-19.el7.x86_64.rpm libXau-1.0.8-2.1.el7.x86_64.rpm perl-Time-Local-1.2300-2.el7.noarch.rpm e2fsprogs-libs-1.42.9-19.el7.x86_64.rpm libXau-devel-1.0.8-2.1.el7.x86_64.rpm python-2.7.5-89.el7.x86_64.rpm expat-2.1.0-12.el7.x86_64.rpm libxcb-1.13-1.el7.x86_64.rpm python2-rpm-macros-3-34.el7.noarch.rpm expat-devel-2.1.0-12.el7.x86_64.rpm libxcb-devel-1.13-1.el7.x86_64.rpm python3-3.6.8-17.el7.x86_64.rpm fontconfig-2.13.0-4.3.el7.x86_64.rpm libXft-2.3.2-2.el7.x86_64.rpm python3-devel-3.6.8-17.el7.x86_64.rpm fontconfig-devel-2.13.0-4.3.el7.x86_64.rpm libXft-devel-2.3.2-2.el7.x86_64.rpm python3-libs-3.6.8-17.el7.x86_64.rpm fontpackages-filesystem-1.44-8.el7.noarch.rpm libxml2-2.9.1-6.el7.5.x86_64.rpm python3-pip-9.0.3-8.el7.noarch.rpm gcc-4.8.5-44.el7.x86_64.rpm libxml2-python-2.9.1-6.el7.5.x86_64.rpm python3-rpm-generators-6-2.el7.noarch.rpm gcc-c++-4.8.5-44.el7.x86_64.rpm libXrender-0.9.10-1.el7.x86_64.rpm python3-rpm-macros-3-34.el7.noarch.rpm gdbm-devel-1.10-8.el7.x86_64.rpm libXrender-devel-0.9.10-1.el7.x86_64.rpm python3-setuptools-39.2.0-10.el7.noarch.rpm glibc-2.17-317.el7.x86_64.rpm mpfr-3.1.1-4.el7.x86_64.rpm python-deltarpm-3.6-3.el7.x86_64.rpm glibc-common-2.17-317.el7.x86_64.rpm ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm python-devel-2.7.5-89.el7.x86_64.rpm glibc-devel-2.17-317.el7.x86_64.rpm openssl-devel-1.0.2k-19.el7.x86_64.rpm python-libs-2.7.5-89.el7.x86_64.rpm glibc-headers-2.17-317.el7.x86_64.rpm pcre-devel-8.32-17.el7.x86_64.rpm python-rpm-macros-3-34.el7.noarch.rpm gpm-libs-1.20.7-6.el7.x86_64.rpm perl-5.16.3-297.el7.x86_64.rpm python-srpm-macros-3-34.el7.noarch.rpm keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm perl-Carp-1.26-244.el7.noarch.rpm readline-devel-6.2-11.el7.x86_64.rpm krb5-devel-1.15.1-50.el7.x86_64.rpm perl-constant-1.27-2.el7.noarch.rpm redhat-rpm-config-9.1.0-88.el7.centos.noarch.rpm krb5-libs-1.15.1-50.el7.x86_64.rpm perl-Encode-2.51-7.el7.x86_64.rpm repodata libblkid-2.23.2-65.el7.x86_64.rpm perl-Exporter-5.68-3.el7.noarch.rpm sqlite-devel-3.7.17-8.el7_7.1.x86_64.rpm libcom_err-1.42.9-19.el7.x86_64.rpm perl-File-Path-2.09-2.el7.noarch.rpm tcl-8.5.13-8.el7.x86_64.rpm libcom_err-devel-1.42.9-19.el7.x86_64.rpm perl-File-Temp-0.23.01-3.el7.noarch.rpm tcl-devel-8.5.13-8.el7.x86_64.rpm libffi-devel-3.0.13-19.el7.x86_64.rpm perl-Filter-1.49-3.el7.x86_64.rpm tk-8.5.13-6.el7.x86_64.rpm libgcc-4.8.5-44.el7.x86_64.rpm perl-Getopt-Long-2.40-3.el7.noarch.rpm tk-devel-8.5.13-6.el7.x86_64.rpm libgomp-4.8.5-44.el7.x86_64.rpm perl-HTTP-Tiny-0.033-3.el7.noarch.rpm util-linux-2.23.2-65.el7.x86_64.rpm libkadm5-1.15.1-50.el7.x86_64.rpm perl-libs-5.16.3-297.el7.x86_64.rpm vim-common-7.4.629-7.el7.x86_64.rpm libmount-2.23.2-65.el7.x86_64.rpm perl-macros-5.16.3-297.el7.x86_64.rpm vim-enhanced-7.4.629-7.el7.x86_64.rpm libmpc-1.0.1-3.el7.x86_64.rpm perl-parent-0.225-244.el7.noarch.rpm vim-filesystem-7.4.629-7.el7.x86_64.rpm libpcap-1.5.3-12.el7.x86_64.rpm perl-PathTools-3.40-5.el7.x86_64.rpm xorg-x11-proto-devel-2018.4-1.el7.noarch.rpm libpcap-devel-1.5.3-12.el7.x86_64.rpm perl-Pod-Escapes-1.04-297.el7.noarch.rpm xz-devel-5.2.2-1.el7.x86_64.rpm libpng-1.5.13-8.el7.x86_64.rpm perl-podlators-2.5.1-3.el7.noarch.rpm zip-3.0-11.el7.x86_64.rpm libpng-devel-1.5.13-8.el7.x86_64.rpm perl-Pod-Perldoc-3.20-4.el7.noarch.rpm zlib-devel-1.2.7-18.el7.x86_64.rpm libselinux-devel-2.5-15.el7.x86_64.rpm perl-Pod-Simple-3.28-4.el7.noarch.rpm [root@localhost packages]# cd .. [root@localhost base]# cd .. [root@localhost soft]# ls base epel extras pyhive timedhosts timedhosts.txt updates [root@localhost soft]# cp -r base/packages ./ [root@localhost soft]# ls base epel extras packages pyhive timedhosts timedhosts.txt updates [root@localhost soft]# tar -zcvf pyhive.tar.gz pyhive packages pyhive/ pyhive/requirements.txt pyhive/future-0.18.2.tar.gz pyhive/PyHive-0.6.3.tar.gz pyhive/python_dateutil-2.8.1-py2.py3-none-any.whl pyhive/six-1.15.0-py2.py3-none-any.whl pyhive/thrift-0.13.0.tar.gz pyhive/sasl-0.2.1.tar.gz pyhive/thrift_sasl-0.4.2.tar.gz packages/ packages/gpm-libs-1.20.7-6.el7.x86_64.rpm packages/perl-5.16.3-297.el7.x86_64.rpm packages/perl-Encode-2.51-7.el7.x86_64.rpm packages/perl-Carp-1.26-244.el7.noarch.rpm packages/perl-Exporter-5.68-3.el7.noarch.rpm packages/perl-File-Path-2.09-2.el7.noarch.rpm packages/perl-File-Temp-0.23.01-3.el7.noarch.rpm packages/perl-Filter-1.49-3.el7.x86_64.rpm packages/perl-Getopt-Long-2.40-3.el7.noarch.rpm packages/perl-HTTP-Tiny-0.033-3.el7.noarch.rpm packages/perl-PathTools-3.40-5.el7.x86_64.rpm packages/perl-Pod-Escapes-1.04-297.el7.noarch.rpm packages/perl-Pod-Perldoc-3.20-4.el7.noarch.rpm packages/perl-Pod-Simple-3.28-4.el7.noarch.rpm packages/perl-Pod-Usage-1.63-3.el7.noarch.rpm packages/perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm packages/perl-Socket-2.010-5.el7.x86_64.rpm packages/perl-Storable-2.45-3.el7.x86_64.rpm packages/perl-Text-ParseWords-3.29-4.el7.noarch.rpm packages/perl-Time-HiRes-1.9725-3.el7.x86_64.rpm packages/perl-Time-Local-1.2300-2.el7.noarch.rpm packages/perl-constant-1.27-2.el7.noarch.rpm packages/perl-libs-5.16.3-297.el7.x86_64.rpm packages/perl-macros-5.16.3-297.el7.x86_64.rpm packages/perl-parent-0.225-244.el7.noarch.rpm packages/perl-podlators-2.5.1-3.el7.noarch.rpm packages/perl-threads-1.87-4.el7.x86_64.rpm packages/perl-threads-shared-1.43-6.el7.x86_64.rpm packages/vim-common-7.4.629-7.el7.x86_64.rpm packages/vim-enhanced-7.4.629-7.el7.x86_64.rpm packages/vim-filesystem-7.4.629-7.el7.x86_64.rpm packages/bzip2-devel-1.0.6-13.el7.x86_64.rpm packages/dejavu-fonts-common-2.33-6.el7.noarch.rpm packages/dejavu-sans-fonts-2.33-6.el7.noarch.rpm packages/e2fsprogs-1.42.9-19.el7.x86_64.rpm packages/e2fsprogs-libs-1.42.9-19.el7.x86_64.rpm packages/expat-2.1.0-12.el7.x86_64.rpm packages/expat-devel-2.1.0-12.el7.x86_64.rpm packages/fontconfig-2.13.0-4.3.el7.x86_64.rpm packages/fontconfig-devel-2.13.0-4.3.el7.x86_64.rpm packages/fontpackages-filesystem-1.44-8.el7.noarch.rpm packages/gdbm-devel-1.10-8.el7.x86_64.rpm packages/keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm packages/krb5-devel-1.15.1-50.el7.x86_64.rpm packages/krb5-libs-1.15.1-50.el7.x86_64.rpm packages/libXau-1.0.8-2.1.el7.x86_64.rpm packages/libXau-devel-1.0.8-2.1.el7.x86_64.rpm packages/libXft-2.3.2-2.el7.x86_64.rpm packages/libXft-devel-2.3.2-2.el7.x86_64.rpm packages/libXrender-0.9.10-1.el7.x86_64.rpm packages/libXrender-devel-0.9.10-1.el7.x86_64.rpm packages/libblkid-2.23.2-65.el7.x86_64.rpm packages/libcom_err-1.42.9-19.el7.x86_64.rpm packages/libcom_err-devel-1.42.9-19.el7.x86_64.rpm packages/libkadm5-1.15.1-50.el7.x86_64.rpm packages/libmount-2.23.2-65.el7.x86_64.rpm packages/libpcap-devel-1.5.3-12.el7.x86_64.rpm packages/libpcap-1.5.3-12.el7.x86_64.rpm packages/libpng-1.5.13-8.el7.x86_64.rpm packages/libpng-devel-1.5.13-8.el7.x86_64.rpm packages/libselinux-devel-2.5-15.el7.x86_64.rpm packages/libsepol-devel-2.5-10.el7.x86_64.rpm packages/libsmartcols-2.23.2-65.el7.x86_64.rpm packages/libss-1.42.9-19.el7.x86_64.rpm packages/libuuid-2.23.2-65.el7.x86_64.rpm packages/libuuid-devel-2.23.2-65.el7.x86_64.rpm packages/libverto-devel-0.2.5-4.el7.x86_64.rpm packages/libxcb-1.13-1.el7.x86_64.rpm packages/libxcb-devel-1.13-1.el7.x86_64.rpm packages/ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm packages/openssl-devel-1.0.2k-19.el7.x86_64.rpm packages/pcre-devel-8.32-17.el7.x86_64.rpm packages/readline-devel-6.2-11.el7.x86_64.rpm packages/sqlite-devel-3.7.17-8.el7_7.1.x86_64.rpm packages/tcl-8.5.13-8.el7.x86_64.rpm packages/tcl-devel-8.5.13-8.el7.x86_64.rpm packages/tk-8.5.13-6.el7.x86_64.rpm packages/tk-devel-8.5.13-6.el7.x86_64.rpm packages/util-linux-2.23.2-65.el7.x86_64.rpm packages/xorg-x11-proto-devel-2018.4-1.el7.noarch.rpm packages/xz-devel-5.2.2-1.el7.x86_64.rpm packages/zlib-devel-1.2.7-18.el7.x86_64.rpm packages/glibc-2.17-317.el7.x86_64.rpm packages/cpp-4.8.5-44.el7.x86_64.rpm packages/glibc-devel-2.17-317.el7.x86_64.rpm packages/gcc-4.8.5-44.el7.x86_64.rpm packages/glibc-common-2.17-317.el7.x86_64.rpm packages/glibc-headers-2.17-317.el7.x86_64.rpm packages/libgcc-4.8.5-44.el7.x86_64.rpm packages/libgomp-4.8.5-44.el7.x86_64.rpm packages/libmpc-1.0.1-3.el7.x86_64.rpm packages/mpfr-3.1.1-4.el7.x86_64.rpm packages/python-2.7.5-89.el7.x86_64.rpm packages/python-devel-2.7.5-89.el7.x86_64.rpm packages/python-libs-2.7.5-89.el7.x86_64.rpm packages/python-rpm-macros-3-34.el7.noarch.rpm packages/python-srpm-macros-3-34.el7.noarch.rpm packages/python2-rpm-macros-3-34.el7.noarch.rpm packages/libffi-devel-3.0.13-19.el7.x86_64.rpm packages/gcc-c++-4.8.5-44.el7.x86_64.rpm packages/libstdc++-4.8.5-44.el7.x86_64.rpm packages/libstdc++-devel-4.8.5-44.el7.x86_64.rpm packages/dwz-0.11-3.el7.x86_64.rpm packages/libtirpc-0.2.4-0.16.el7.x86_64.rpm packages/perl-srpm-macros-1-8.el7.noarch.rpm packages/python3-3.6.8-17.el7.x86_64.rpm packages/python3-devel-3.6.8-17.el7.x86_64.rpm packages/python3-libs-3.6.8-17.el7.x86_64.rpm packages/python3-pip-9.0.3-8.el7.noarch.rpm packages/python3-rpm-generators-6-2.el7.noarch.rpm packages/python3-rpm-macros-3-34.el7.noarch.rpm packages/python3-setuptools-39.2.0-10.el7.noarch.rpm packages/redhat-rpm-config-9.1.0-88.el7.centos.noarch.rpm packages/zip-3.0-11.el7.x86_64.rpm packages/cyrus-sasl-2.1.26-23.el7.x86_64.rpm packages/cyrus-sasl-devel-2.1.26-23.el7.x86_64.rpm packages/createrepo-0.9.9-28.el7.noarch.rpm packages/deltarpm-3.6-3.el7.x86_64.rpm packages/libxml2-2.9.1-6.el7.5.x86_64.rpm packages/libxml2-python-2.9.1-6.el7.5.x86_64.rpm packages/python-deltarpm-3.6-3.el7.x86_64.rpm packages/repodata/ packages/repodata/a53f5c4daf20be83c216eefa2ec34902b3e2e8ef43df85a621483762366e2401-other.sqlite.bz2 packages/repodata/3d385bf3f4f0028cd274e0d6ef97b9ba082262ddb1742aaf3d14b1a5c394573f-other.xml.gz packages/repodata/548a70f514b74eea73dd9f4da4895e043caaa0e2c7293262d2fb1a84efcf75f0-filelists.sqlite.bz2 packages/repodata/d9d814b0aae61a1836526d5790cb7feeab38746fdc73e672dbdc0bb2ed517d25-filelists.xml.gz packages/repodata/67e789c3d9ab4c9e578e4605081fa316c2b4ed799308a051ef7ab23d0b641ee5-primary.sqlite.bz2 packages/repodata/a004a552df50459fd6dbade53d2b935a86111d0dcb47860988f433dcc7c7c579-primary.xml.gz packages/repodata/repomd.xml [root@localhost soft]# history 1 ping 11.com 2 ping qq.com 3 vi /etc/selinux/config 4 systemctl stop firewalld 5 ping qq.com 6 reboot 7 yum install vim 8 ls 9 history 10 ls /soft/base/packages/ 11 ls 12 ls /usr/ 13 mkdir -p /usr/local/python3 14 tar -zxvf Python-3.6.5.tgz 15 ls 16 cd Python-3.6.5 17 ls 18 ./configure --prefix=/usr/local/python3 19 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel 20 yum install epel-release 21 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel 22 ping qq.com 23 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel 24 yum install epel-release 25 yum makecache 26 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel 27 ./configure --prefix=/usr/local/python3 28 yum -y install gcc 29 ./configure --prefix=/usr/local/python3 30 make && make install 31 ln -s /usr/local/python3/bin/python3 /usr/bin/python3 32 vim ~/.bash.profile 33 vim ~/.bash_profile 34 source ~/.bash_profile 35 python3 -V 36 cd /soft/ 37 ls 38 mkdir pyhive 39 pip3 -V 40 pip install pyhive 41 pip3 install pyhive 42 pip install --upgrade pip 43 pip3 -V 44 pip3 install --upgrade pip 45 pip3 install pyhive 46 cd pyhive/ 47 pip3 freeze > requirements.txt 48 pip3 download -d /soft/pyhive -r requirements.txt 49 pip3 wheel -w /soft/pyhive -r requirements.txt 50 pip3 install thrift 51 pip3 freeze > requirements.txt 52 pip3 download -d /soft/pyhive -r requirements.txt 53 pip3 wheel -w /soft/pyhive -r requirements.txt 54 pip3 install sasl 55 yum -y install gcc 56 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 57 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo 58 curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo 59 yum -y install gcc 60 yum install python-devel 61 yum install gcc libffi-devel python-devel openssl-devel 62 yum install -y libffi-devel python-devel openssl-devel 63 pip3 install sasl 64 yum install cc1plus 65 yum install gcc-c++</span> 66 yum install gcc-c++ 67 yum install gcc-c++ -y 68 pip3 install sasl 69 yum -y install python3-devel 70 pip3 install sasl 71 yum -y install cyrus-sasl cyrus-sasl-devel cyrus-sasl-lib 72 pip3 install sasl 73 pip3 install thrift_sasl 74 ls 75 pip3 freeze > requirements.txt 76 pip3 download -d /soft/pyhive -r requirements.txt 77 pip3 wheel -w /soft/pyhive -r requirements.txt 78 ls 79 cat requirements.txt 80 ls 81 cd .. 82 ls 83 cd base/packages/ 84 ls 85 cd .. 86 yum -y install createrepo 87 createrepo packages/ 88 cd packages/ 89 ls 90 cd .. 91 cp packages ../ 92 ls 93 cd packages/ 94 ls 95 cd .. 96 ls 97 cp -r base/packages ./ 98 ls 99 tar -zcvf pyhive.tar.gz pyhive packages 100 history [root@localhost soft]# history | grep yum 7 yum install vim 19 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel 20 yum install epel-release 21 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel 23 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel 24 yum install epel-release 25 yum makecache 26 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel 28 yum -y install gcc 55 yum -y install gcc 56 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 57 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo 58 curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo 59 yum -y install gcc 60 yum install python-devel 61 yum install gcc libffi-devel python-devel openssl-devel 62 yum install -y libffi-devel python-devel openssl-devel 64 yum install cc1plus 65 yum install gcc-c++</span> 66 yum install gcc-c++ 67 yum install gcc-c++ -y 69 yum -y install python3-devel 71 yum -y install cyrus-sasl cyrus-sasl-devel cyrus-sasl-lib 86 yum -y install createrepo 101 history | grep yum [root@localhost soft]# yum -y install python3-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=stock&content=centos error was 12: Timeout on https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=stock&content=centos: (28, 'Operation timed out after 30001 milliseconds wit h 0 out of 0 bytes received') ^C^C^C^C^C^C ^C ^C ^C ^C ^C ^C ^C ^C ^C Exiting on user cancel ^C ^C ^C ^CException KeyboardInterrupt in <module 'threading' from '/usr/lib64/python2.7/threading.pyc'> ignored [root@localhost soft]# [root@localhost soft]# yum -y install python3-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.3 kB 00:00:00 ^C Exiting on user cancel [root@localhost soft]# yum -y install python3-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.3 kB 00:00:00 * base: mirrors.aliyun.com * epel: mirrors.bfsu.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 Package python3-devel-3.6.8-17.el7.x86_64 already installed and latest version Nothing to do [root@localhost soft]# rpm -qa | grep python3-devel python3-devel-3.6.8-17.el7.x86_64 [root@localhost soft]# find / -name python3-devel [root@localhost soft]# ^C [root@localhost soft]# find / -name python3-devel* /usr/share/doc/python3-devel-3.6.8 /soft/base/packages/python3-devel-3.6.8-17.el7.x86_64.rpm /soft/packages/python3-devel-3.6.8-17.el7.x86_64.rpm [root@localhost soft]# ls base epel extras packages pyhive pyhive.tar.gz timedhosts timedhosts.txt updates [root@localhost soft]# cd packages/ [root@localhost packages]# ls bzip2-devel-1.0.6-13.el7.x86_64.rpm libsepol-devel-2.5-10.el7.x86_64.rpm perl-Pod-Usage-1.63-3.el7.noarch.rpm cpp-4.8.5-44.el7.x86_64.rpm libsmartcols-2.23.2-65.el7.x86_64.rpm perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm createrepo-0.9.9-28.el7.noarch.rpm libss-1.42.9-19.el7.x86_64.rpm perl-Socket-2.010-5.el7.x86_64.rpm cyrus-sasl-2.1.26-23.el7.x86_64.rpm libstdc++-4.8.5-44.el7.x86_64.rpm perl-srpm-macros-1-8.el7.noarch.rpm cyrus-sasl-devel-2.1.26-23.el7.x86_64.rpm libstdc++-devel-4.8.5-44.el7.x86_64.rpm perl-Storable-2.45-3.el7.x86_64.rpm dejavu-fonts-common-2.33-6.el7.noarch.rpm libtirpc-0.2.4-0.16.el7.x86_64.rpm perl-Text-ParseWords-3.29-4.el7.noarch.rpm dejavu-sans-fonts-2.33-6.el7.noarch.rpm libuuid-2.23.2-65.el7.x86_64.rpm perl-threads-1.87-4.el7.x86_64.rpm deltarpm-3.6-3.el7.x86_64.rpm libuuid-devel-2.23.2-65.el7.x86_64.rpm perl-threads-shared-1.43-6.el7.x86_64.rpm dwz-0.11-3.el7.x86_64.rpm libverto-devel-0.2.5-4.el7.x86_64.rpm perl-Time-HiRes-1.9725-3.el7.x86_64.rpm e2fsprogs-1.42.9-19.el7.x86_64.rpm libXau-1.0.8-2.1.el7.x86_64.rpm perl-Time-Local-1.2300-2.el7.noarch.rpm e2fsprogs-libs-1.42.9-19.el7.x86_64.rpm libXau-devel-1.0.8-2.1.el7.x86_64.rpm python-2.7.5-89.el7.x86_64.rpm expat-2.1.0-12.el7.x86_64.rpm libxcb-1.13-1.el7.x86_64.rpm python2-rpm-macros-3-34.el7.noarch.rpm expat-devel-2.1.0-12.el7.x86_64.rpm libxcb-devel-1.13-1.el7.x86_64.rpm python3-3.6.8-17.el7.x86_64.rpm fontconfig-2.13.0-4.3.el7.x86_64.rpm libXft-2.3.2-2.el7.x86_64.rpm python3-devel-3.6.8-17.el7.x86_64.rpm fontconfig-devel-2.13.0-4.3.el7.x86_64.rpm libXft-devel-2.3.2-2.el7.x86_64.rpm python3-libs-3.6.8-17.el7.x86_64.rpm fontpackages-filesystem-1.44-8.el7.noarch.rpm libxml2-2.9.1-6.el7.5.x86_64.rpm python3-pip-9.0.3-8.el7.noarch.rpm gcc-4.8.5-44.el7.x86_64.rpm libxml2-python-2.9.1-6.el7.5.x86_64.rpm python3-rpm-generators-6-2.el7.noarch.rpm gcc-c++-4.8.5-44.el7.x86_64.rpm libXrender-0.9.10-1.el7.x86_64.rpm python3-rpm-macros-3-34.el7.noarch.rpm gdbm-devel-1.10-8.el7.x86_64.rpm libXrender-devel-0.9.10-1.el7.x86_64.rpm python3-setuptools-39.2.0-10.el7.noarch.rpm glibc-2.17-317.el7.x86_64.rpm mpfr-3.1.1-4.el7.x86_64.rpm python-deltarpm-3.6-3.el7.x86_64.rpm glibc-common-2.17-317.el7.x86_64.rpm ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm python-devel-2.7.5-89.el7.x86_64.rpm glibc-devel-2.17-317.el7.x86_64.rpm openssl-devel-1.0.2k-19.el7.x86_64.rpm python-libs-2.7.5-89.el7.x86_64.rpm glibc-headers-2.17-317.el7.x86_64.rpm pcre-devel-8.32-17.el7.x86_64.rpm python-rpm-macros-3-34.el7.noarch.rpm gpm-libs-1.20.7-6.el7.x86_64.rpm perl-5.16.3-297.el7.x86_64.rpm python-srpm-macros-3-34.el7.noarch.rpm keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm perl-Carp-1.26-244.el7.noarch.rpm readline-devel-6.2-11.el7.x86_64.rpm krb5-devel-1.15.1-50.el7.x86_64.rpm perl-constant-1.27-2.el7.noarch.rpm redhat-rpm-config-9.1.0-88.el7.centos.noarch.rpm krb5-libs-1.15.1-50.el7.x86_64.rpm perl-Encode-2.51-7.el7.x86_64.rpm repodata libblkid-2.23.2-65.el7.x86_64.rpm perl-Exporter-5.68-3.el7.noarch.rpm sqlite-devel-3.7.17-8.el7_7.1.x86_64.rpm libcom_err-1.42.9-19.el7.x86_64.rpm perl-File-Path-2.09-2.el7.noarch.rpm tcl-8.5.13-8.el7.x86_64.rpm libcom_err-devel-1.42.9-19.el7.x86_64.rpm perl-File-Temp-0.23.01-3.el7.noarch.rpm tcl-devel-8.5.13-8.el7.x86_64.rpm libffi-devel-3.0.13-19.el7.x86_64.rpm perl-Filter-1.49-3.el7.x86_64.rpm tk-8.5.13-6.el7.x86_64.rpm libgcc-4.8.5-44.el7.x86_64.rpm perl-Getopt-Long-2.40-3.el7.noarch.rpm tk-devel-8.5.13-6.el7.x86_64.rpm libgomp-4.8.5-44.el7.x86_64.rpm perl-HTTP-Tiny-0.033-3.el7.noarch.rpm util-linux-2.23.2-65.el7.x86_64.rpm libkadm5-1.15.1-50.el7.x86_64.rpm perl-libs-5.16.3-297.el7.x86_64.rpm vim-common-7.4.629-7.el7.x86_64.rpm libmount-2.23.2-65.el7.x86_64.rpm perl-macros-5.16.3-297.el7.x86_64.rpm vim-enhanced-7.4.629-7.el7.x86_64.rpm libmpc-1.0.1-3.el7.x86_64.rpm perl-parent-0.225-244.el7.noarch.rpm vim-filesystem-7.4.629-7.el7.x86_64.rpm libpcap-1.5.3-12.el7.x86_64.rpm perl-PathTools-3.40-5.el7.x86_64.rpm xorg-x11-proto-devel-2018.4-1.el7.noarch.rpm libpcap-devel-1.5.3-12.el7.x86_64.rpm perl-Pod-Escapes-1.04-297.el7.noarch.rpm xz-devel-5.2.2-1.el7.x86_64.rpm libpng-1.5.13-8.el7.x86_64.rpm perl-podlators-2.5.1-3.el7.noarch.rpm zip-3.0-11.el7.x86_64.rpm libpng-devel-1.5.13-8.el7.x86_64.rpm perl-Pod-Perldoc-3.20-4.el7.noarch.rpm zlib-devel-1.2.7-18.el7.x86_64.rpm libselinux-devel-2.5-15.el7.x86_64.rpm perl-Pod-Simple-3.28-4.el7.noarch.rpm [root@localhost packages]#