안녕하세요, Python은 처음이에요. collections.abc 대신 'collections'를 통해 ABC를 사용하거나 가져오면 Python 3.10에서 작동하지 않는다는 DeprecationWarning이 나와요
import pymssql as pymssql
임포트 시스템 문서(https://docs.python.org/3/reference/import.html)는 기술적으로 정확해 보이는데, from과 import를 어떻게 조합해 봐도 구문 오류가 나네요.
Raspberry Pi의 armv7l GNU/Linux에서 python 3.9.2를 실행하고 있어요
python3 -m pip show pymssql를 보면 /usr/lib/python3/dist-packages 아래에 설치돼 있다고 해요
그 디렉터리에는 pymssql-2.1.4.egg-info와 pymssql.cpython-39-arm-linux-gnueabihf.so가 있어요
어떤 import 문을 써야 하는지 알려 주실 수 있나요?
영어에서 번역·원문 보기Hello, Python is new to me. I'm seeing DeprecationWarning saying that using or importing ABCs through 'collections' rather than collections.abc wont work in Python 3.10
import pymssql as pymssql
The import-system documentation (https://docs.python.org/3/reference/import.html) seems technically precise, yet every combination of from and import I've attempted produces a syntax error.
I'm running python 3.9.2, with armv7l GNU/Linux running on my Raspberry Pi
python3 -m pip show pymssql reports an installation under /usr/lib/python3/dist-packages
That directory contains pymssql-2.1.4.egg-info alongside pymssql.cpython-39-arm-linux-gnueabihf.so
Could someone show me the import statement I need?