728x90
- python3.6 on ubuntu18.04 is necessary so you CANNOT remove that version(it includes system libraries)
- prerequires: installed python3.8.
- so you've 2 python 3.x(3.6, 3.8)
- check current state
$pip -V
(out)pip 20.0.2 from /home/amaruak00/.local/lib/python3.6/site-packages/pip (python 3.6) - install venv, dev
$sudo apt-get install python3.8-venv python3.8-dev - update 3.8 pip
$sudo /usr/bin/python3.8 -m pip install --upgrade pip
(upgrading) - check
$pip -V
(out)pip 20.0.2 from /home/amaruak00/.local/lib/python3.8/site-packages/pip (python 3.8) - setting python3.8 as python3
$sudo update-alternatives --config python3
$sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 0 (마지막 인자는 실행 priority)
#check python3.8 as primarly- If some libraries are seems crash, uninstall & reinstall
- (ex)pip uninstall Pillow / pip install Pillow
https://amaruak00.tistory.com/24
Point pip command to python 3.8 from 3.6 on ubuntu 18.04
python3.6 on ubuntu18.04 is necessary so you CANNOT remove that version(it includes system libraries) prerequires: installed python3.8. so you've 2 python 3.x(3.6, 3.8) check current state $pip -V (..
amaruak00.tistory.com
728x90
'Terminal' 카테고리의 다른 글
쉘스크립트, tee 명령어 (0) | 2021.08.22 |
---|---|
scp 파일전송 실패시 (local -> server, Permission error) (0) | 2021.08.13 |
chown : 권한 변경 명령어 (0) | 2021.06.08 |
Terminal 특정 이름 포함 파일 삭제 (0) | 2021.05.27 |
윈도우 to 리눅스 파일전송 (0) | 2021.05.18 |