티처프레너스 노트
python - 가상환경에 Mysqlclient 설치하기 본문
가상환경에 mysqlclient를 설치하려고 보니 오류가 자꾸 발생한다.
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Failed building wheel for mysqlclient
구글링해서 친절한 선생님들의 해결방안을 이곳에 옮겨적는다.
1. 파이썬 버전, 비트에 맞는 설치파일 찾기
www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient
Python Extension Packages for Windows - Christoph Gohlke
by Christoph Gohlke, Laboratory for Fluorescence Dynamics, University of California, Irvine. Updated on 2 February 2021 at 08:51 UTC. This page provides 32- and 64-bit Windows binaries of many scientific open-source extension packages for the official CPyt
www.lfd.uci.edu
참고 : 파이썬 비트 확인하는 방법
import platform
print(platform.architecture())
2. 위 설치파일을 다운받은 뒤 install 명령어로 설치
pip install ./mysqlclient-1.4.6-cp37-cp37m-win32.whl
'👨💻 개발 노트 > Python Django' 카테고리의 다른 글
Django 회원가입 시 아이디/비밀번호 검증하는 로직 (정규식X) (1) | 2021.02.13 |
---|---|
AWS EC2에 MariaDB설치하고 Django로 연동시키기 (0) | 2021.02.02 |
Comments