조치방법 | centos 7 python No module named yum
페이지 정보
작성자 전소현 작성일20-10-24 09:10 조회708회 댓글0건관련링크
본문
./etc/python
./root/python
./usr/bin/python
./usr/share/gcc-4.8.2/python
./usr/share/gdb/python
./usr/share/swig/2.0.10/python
./usr/libexec/systemtap/python
./usr/local/bin/python
./usr/local/src/Python-2.7.9/python
./home/goodsweb/public_html/python
./opt/rh/rh-python35/root/usr/bin/python
./opt/eff.org/certbot/venv/bin/python
source /root/.bashrc
vi /usr/bin/yum
#!/usr/bin/python
경로 지정
vum 실행 끝
missing /usr/bin/python
missing /usr/bin/python2
missing /usr/bin/python2.7
ln -s /usr/bin/python /usr/bin/python-origin
/usr/lib/python2.7/site-packages/yum
ls -l /usr/local/bin pyth*
rpm -Uvh python-2.7.5-88.el7.x86_64.rpm
[root@thechr-99952 ~]# python
Python 2.7.5 (default, Aug 4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
[1]+ Stopped python
dwz python
dynamodb_dump python2.7-config
dynamodb_load python2-config
easy_install python-config
easy_install-2.7 python_old
echo python.old
editdiff python-origin
lrwxrwxrwx 1 root root 24 Oct 24 07:34 python -> /etc/alternatives/python
-rw-r--r-- 1 root root 8205896 Oct 24 08:19 python2
-rw-r--r-- 1 root root 7136 Oct 24 08:15 python2.7
-rwxr-xr-x 1 root root 1835 Apr 2 2020 python2.7-config
lrwxrwxrwx 1 root root 16 Jun 10 10:22 python2-config -> python2.7-config
lrwxrwxrwx 1 root root 14 Jun 10 10:22 python-config -> python2-config
-rwxr-xr-x 1 root root 11208 Oct 3 17:51 python_old
lrwxrwxrwx 1 root root 14 Oct 3 17:28 python.old -> /bin/python2.7
-rwxr-xr-x 1 root root 8205896 Oct 4 21:38 python-origin
python-2.7.5 설치하기
설치되어 있는 버전 삭제
[root@thechr-100194 tmp]# rpm -e python-2.7.5-88.el7.x86_64
rpm 다운로드 tmp 저장
[root@thechr-100194 tmp]# ls
python-2.7.5-88.el7.x86_64.rpm
python-devel-2.7.5-88.el7.x86_64.rpm
python-libs-2.7.5-88.el7.x86_64.rpm
python-tools-2.7.5-88.el7.x86_64.rpm
[root@thechr-100194 tmp]# rpm -Uvh --replacepkgs python*.rpm
./root/python
./usr/bin/python
./usr/share/gcc-4.8.2/python
./usr/share/gdb/python
./usr/share/swig/2.0.10/python
./usr/libexec/systemtap/python
./usr/local/bin/python
./usr/local/src/Python-2.7.9/python
./home/goodsweb/public_html/python
./opt/rh/rh-python35/root/usr/bin/python
./opt/eff.org/certbot/venv/bin/python
source /root/.bashrc
vi /usr/bin/yum
#!/usr/bin/python
경로 지정
vum 실행 끝
missing /usr/bin/python
missing /usr/bin/python2
missing /usr/bin/python2.7
ln -s /usr/bin/python /usr/bin/python-origin
/usr/lib/python2.7/site-packages/yum
ls -l /usr/local/bin pyth*
rpm -Uvh python-2.7.5-88.el7.x86_64.rpm
[root@thechr-99952 ~]# python
Python 2.7.5 (default, Aug 4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
[1]+ Stopped python
dwz python
dynamodb_dump python2.7-config
dynamodb_load python2-config
easy_install python-config
easy_install-2.7 python_old
echo python.old
editdiff python-origin
lrwxrwxrwx 1 root root 24 Oct 24 07:34 python -> /etc/alternatives/python
-rw-r--r-- 1 root root 8205896 Oct 24 08:19 python2
-rw-r--r-- 1 root root 7136 Oct 24 08:15 python2.7
-rwxr-xr-x 1 root root 1835 Apr 2 2020 python2.7-config
lrwxrwxrwx 1 root root 16 Jun 10 10:22 python2-config -> python2.7-config
lrwxrwxrwx 1 root root 14 Jun 10 10:22 python-config -> python2-config
-rwxr-xr-x 1 root root 11208 Oct 3 17:51 python_old
lrwxrwxrwx 1 root root 14 Oct 3 17:28 python.old -> /bin/python2.7
-rwxr-xr-x 1 root root 8205896 Oct 4 21:38 python-origin
python-2.7.5 설치하기
설치되어 있는 버전 삭제
[root@thechr-100194 tmp]# rpm -e python-2.7.5-88.el7.x86_64
rpm 다운로드 tmp 저장
[root@thechr-100194 tmp]# ls
python-2.7.5-88.el7.x86_64.rpm
python-devel-2.7.5-88.el7.x86_64.rpm
python-libs-2.7.5-88.el7.x86_64.rpm
python-tools-2.7.5-88.el7.x86_64.rpm
[root@thechr-100194 tmp]# rpm -Uvh --replacepkgs python*.rpm
[주소복사] https://www.goodsweb.kr/?u=D41y4NMb
SNS 알리기
핀터레스트
텔레그램로
블로그로
페이스북
트위터
카카오스토리
카톡 공유
관련 블로그
로딩중