728x90

라즈베리파이firebase 를 연동하기 위해 다음과 같은 코드를 실행하였다.

sudo pip3 install firebase_admin
suso pip install firebase_admin

하지만.. 다음과 같은 오류가 났고

ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects

이 오류들은

아래와 같이 실행하면 오류 해결 가능하다.

# pip, pip3 와 python, python3는 본인의 pip와 python 버전에 맞게 설치바람

# pip 업그레이드
pip install --upgrade pip
pip3 install --upgrade pip

python -m pip install --upgrade pip
python3 -m pip install --upgrade pip

# 만약 오류가 난다면 —user 실행해서 설치해보기
python -m pip install --user --upgrade pip
python3 -m pip install --user --upgrade pip

# wheel 업그레이드 해주기
pip install --upgrade setuptools wheel
pip3 install --upgrade setuptools wheel
python3 -m pip install --upgrade setuptools wheel

# pip 업그레이드 됐다면 cryptography를 직접 설치해도 됨. 나는 이 과정은 생략.
pip install cryptography
pip3 install cryptography

python -m pip install cryptography
python3 -m pip install cryptography

# 위 과정을 안했다면 여기서부터 따라한다.
pip install minepy
pip3 install minepy 

# 최종 firebase_admin 설치 확인!
pip install firebase_admin

일단.. 나는 sudo pip install firebase_admin와 pip install firebase_admin을 해도 오류가 났음.

하지만 위 과정대로 pip을 업그레이드 시켜주고 sudo를 생략하고

pip install firebase_admin —-no-cache-dir

이렇게해서 설치가 완료됐음

728x90

+ Recent posts