본문 바로가기
AWS

EC2에 python/ fastapi 설치 (Ubuntu)

by Wanado 2023. 2. 1.
728x90

https://codechacha.com/ko/python-install-python-3-10/

 

우분투에 Python 3.10 설치하는 방법

우분투(Linux)에서 파이썬 3.10 버전을 설치하는 방법을 소개합니다. 기본적으로 apt를 이용하여 설치하거나 매뉴얼로 설치 파일을 다운로드하여 설치할 수 있습니다. 다음과 같이 ppa를 추가하고 Py

codechacha.com

** git clone [repository주소]

 

**수정있을시 

git에서 pull 하기

https://thisisprogrammingworld.tistory.com/82?category=878136 

 

[Github] Repository(레파지토리)에 Git clone/pull/push하기

계속 까먹는 것 같아서 글을 적으면서 머릿속에 기억해두려고 작성한다. Clone, Pull, Push 순서로 적겠다. Clone 원격 저장소에 있는 파일 및 폴더를 다운받고 싶을 때 clone하는 방법이다. 만약 원격

thisisprogrammingworld.tistory.com

 

pip3 설치

https://jjeongil.tistory.com/1274

 

Ubuntu 18.04 : pip 설치하는 방법, 예제, 명령어

Pip은 Python Package Index(Python Package Index)와 같이 Python에서 작성된 소프트웨어 패키지의 설치 및 관리를 단순화하는 패키지 관리 시스템입니다. Ubuntu 18.04에는 Pip이 기본적으로 설치되어 있지 않지

jjeongil.tistory.com

** E: Package 'python3-pip' has no installation candidate

Step 1: Enable the universe repository

The first step is to enable the universe repository. To do so you have to run the below command.

sudo add-apt-repository universe

Step 2: Synchronize package database

The next step is to update the package database so that you will easily install the latest modules provided by the Linux database.

sudo apt update

Step 3: Install the pip3 module

After all the steps the last step is to install the pip3 module. Run the below command to install it.

sudo apt install python3-pip

 

 

*****

 

가상환경 설치 (virtualenv) 

https://typingdog.tistory.com/106

 

 

requirements.txt 로 라이브러리 설치

https://hongsamm.tistory.com/42

 

python - requirements.txt 파일 생성하기(freeze) 및 설치하기

파이썬으로 개발을 하다보면 pip를 이용해서 여러가지 모듈을 설치해서 사용을 하게 됩니다. 보통 개발을 하면서 필요한 모듈이 있으면 아래와 같은식으로 다운을 받은뒤 import를 해서 사용을 합

hongsamm.tistory.com

******

jose:  syntaxerror missing parentheses in call to 'print'. did you mean print(...)

https://lucky516.tistory.com/114

아마 하기와 같은 커맨드로 jose를 설치해서 생긴 문제이다.

pip install jose

 

아래와 같이 바꿔주면 해결된다.

pip uninstall jose
pip install "python-jose[cryptography]"

 

<Gunicorn - fastapi 백그라운드에서 실행> (feat.Nginx)

https://facerain.club/fastapi-nginx/

 

 

<NEXT> MySQL 설치

https://bit-b-bit.tistory.com/214

728x90

'AWS' 카테고리의 다른 글

aws사용자데이터) ftp서버  (0) 2023.02.02
Ubunttu MySQL 설치  (0) 2023.02.01
EC2 React 배포  (1) 2023.02.01
EC2로 로컬 파일 전송하기  (0) 2023.02.01
AWS로 웹호스팅  (0) 2023.01.31