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를 쳐보면 된다.
'개발일지와 메모사이' 카테고리의 다른 글
맥OS에서 부팅 시 프로그램 실행 (1) | 2024.07.03 |
---|---|
Powershell 7을 CLI로 업데이트 하는 방법 (0) | 2024.06.22 |
[우분투 24.04] Nginx + Let's Encrypt로 SSL 인증서 설치 및 갱신 (0) | 2024.05.28 |
우분투에서 블루투스 키보드 등록 문제 해결하기 (0) | 2023.10.09 |
우분투 Locale 터미널에서 설정(한글) (1) | 2023.10.05 |