본문 바로가기
728x90
반응형

Programming/Python7

Python Error: externally-managed-environment Error Logerror: externally-managed-environment× This environment is externally managed╰─> To install Python packages system-wide, try brew install xyz, where xyz is the package you are trying to install. If you wish to install a Python library that isn't in Homebrew, use a virtual environment: python3 -m venv path/to/venv source path/to/venv/bin/activate python3 -m p.. 2024. 5. 28.
[Python]fatal error: 'longintrepr.h' file not found AES class를 사용하려고 pycryto을 설치하면서 fatal error: 'longintrepr.h' file not found 에러가 발생하였다. 해결 방법pycryto 대신에 pycrytodome을 설치 합니다.pip uninstall crypto pip uninstall pycrypto pip install pycryptodome 전체 에러 로그pip3 install pycryptoCollecting pycrypto Downloading pycrypto-2.6.1.tar.gz (446 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 446.2/446.2 kB 6.5 MB/s eta 0:00:00 Preparing metadata (setup.py) .. 2024. 5. 24.
ModuleNotFoundError: No module named 'MySQLdb' ModuleNotFoundError: No module named 'MySQLdb'$ pip3 install mysqlclient (python 3)$ pip install mysql-python (python 2)  맥북 Homebrew python설치시 pip 문제Exception: Can not find valid pkg-config name.mysqlclient 2.2.0 설치부터 pkg-config 필요$ sudo apt install default-libmysqlclient-dev pkg-config -y (Linux)$ brew install pkg-config (Mac)  Full Excecption Logpython -m pip install mysqlclientCollecting mys.. 2024. 5. 20.
728x90
반응형