HOME 개발팁 centos 7 python No module named yum

프로그램 작업하다 좋은 팁, 정보, 테스트를 기록하는 곳입니다.


조치방법 | 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

[주소복사] https://www.goodsweb.kr/?u=D41y4NMb
SNS 알리기
핀터레스트
텔레그램로
블로그로
카카오스토리
카톡 공유

관련 블로그
로딩중


3명  IP : 3.15.♡.217
001 135.♡.79.106 공지사항
(/bbs/board.php?bo_table=note&sca=%EA%B3%B5%EC%A7%80&sfl=mb_id,1&stx=rugtsdv176)
002 141.♡.61.111 오류안내 페이지
(/bbs/login_check.php)
003 216.♡.66.232 위치 액세스 권한 부여 요청 및 받기 - 개발팁
(/bbs/board.php?bo_table=tip&wr_id=232&page=9)

접속자
  • 오늘 : 119
  • 어제 : 306
  • 최대 : 874
  • 전체 : 404,749

검색로봇(Robots) 최근 방문시간
  • NAVER : 1시간 전
  • DAUM : 21시간 전
  • GOOGLE : 1일 전
  • BING : 2일 전

ETH : 0x8abf3B748ab78828AE07685e4fd53d1a606f18D3



페이스북 네이버 블로그 굿스웹 쇼핑몰 네이버 카페 굿스웹 트위터 굿스웹 티스토리 Google Play