Error python3 -m pip install --upgrade pip 를 잘못하면 pip 를 실행할 때 syntax error가 난다. Solution python version 확인 후 (python3 --version) wget https://bootstrap.pypa.io/pip/3.5/get-pip.py python3 get-pip.py 를 해주면 pip 최신 버전이 uninstall이 되고 python에 맞는 pip가 설치가 된다.
이것저것 자료/Python
2021. 9. 27. 15:20
[bash script error] Syntax error: "(" unexpected
(이 글은 Ubuntu 18.04를 기준으로 작성되었습니다) Error Syntax error: "(" unexpected Solution sh 대신 bash로 sh 파일 실행시키기 bash file.sh 다른 글에서 ln -s /bin/bash bash로 /bin/bash에 연결되어 있는 dash를 bash로 바꿔주면 된다고 했는데 나는 이 방법도 안됐다. 왜 안됐지..? 안될 이유가 없는데... 여튼 그래서 sh file.sh 에서 bash file.sh 로 바꿔주니 정상적으로 실행되었다.
이것저것 자료/Linux
2021. 8. 9. 12:37
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 백트래킹
- 최소신장트리
- error
- shellscript
- dfs
- tensorflow
- torch
- n과m
- BFS
- notfound
- 코딩테스트
- 카카오
- docker
- 이것이코딩테스트다
- matplotlib
- LGSVL
- PIP
- Python
- numpy
- 설치하기
- 파이썬
- pytorch
- 설치
- CUDA
- 다익스트라
- version
- torchscript
- 동적프로그래밍
- 백준
- 프로그래머스
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
글 보관함
