Conda 환경에서 설치하려면 공식 페이지의 기본 설치 가이드를 따라도 되지 않는다.

Installing uWSGI — uWSGI 2.0 documentation (uwsgi-docs.readthedocs.io)

 

Installing uWSGI — uWSGI 2.0 documentation

Modular builds This is the approach your distribution should follow, and this is the approach you MUST follow if you want to build a commercial service over uWSGI (see below). The vast majority of uWSGI features are available as plugins. Plugins can be loa

uwsgi-docs.readthedocs.io

 

챗GPT와 Copilot에 물어도 pip install uwsgi 로 해결될 것처럼 알려주지만 에러가 날 뿐이다.

 

 

해법

일단 uwsgi 설치 전 기본 요구사항을 설치해주자.

sudo apt update
sudo apt install build-essential python3-dev

 

 

어차피 Python으로 웹어플리케이션을 만들고 배포하는게 목적이니 OpenSSL과 FFI 라이브러리도 함께 설치해 주었다.

sudo apt install libssl-dev libffi-dev

 

 

콘다 환경을 활성화 하고

conda activate <활성을원하는환경명>

 

 

다음 명령을 실행한다.

conda install -c conda-forge uwsgi

 

 

설치가 잘 되었는지 확인해고 싶다면 uwsgi --version를 쳐보면 된다.

설치된 버전이 리턴되었다면 성공!

 

+ Recent posts