
이 오류는 모든 사람에게 발생합니까?
Ubuntu Focal Fossa를 설치합니다.
그런 다음 python3-pip를 설치합니다(이 단계에서는 Python3이 자동으로 설치됩니다).
Python 3.8.10 (default, Jun 2 2021, 10:49:15) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.
사용자 이름을 만들고 설정한 후:
sudo python3 >>> help() help> modules
이제 이 단계에서 오류 메시지가 나타납니다.
Error: Could not import kivy. Please install it using the instructions mentioned here `https://kivy.org/#download` .
요점은 sudo 없이 수행하면 이 오류가 발생하지 않는다는 것입니다.
python3
>>> help()
help> modules
답변1
Error: Could not import kivy. Please install it using the instructions mentioned here https://kivy.org/#download
표시된 오류 메시지는 동일한 상황에서 Ubuntu에서 재현 가능합니다 . python3 modules
명령어는 실행하는 데 시간이 걸리고 루트가 아닌 사용자가 설치한 파일에 대한 정보를 포함할 수 있는 많은 결과를 생성하므로 보안상의 이유로 루트 python3 셸에서 이 명령어를 실행하면 안 됩니다. 이 python3
명령은 일반적으로 일반 사용자가 실행하므로 python3을 루트로 실행하면 안 됩니다.