ImportError:ไม่มีศูนย์ควบคุม kde ในโมดูลที่ชื่อ openpyxl

0

คำถาม

ฉันติดตั้ง openpyxl ผ่านทาง pip3 แต่เมื่อไหร่ที่ฉันพยายามต้องการนำเข้ามันมายังสคริปต์ของฉันฉันได้ข้อผิดพลาดคือ:

"python -u "/Users/hectorv/zipcodes/zips.py"
hectorv@Hectors-MacBook-Air zipcodes % python -u "/Users/hectorv/zipcodes/zips.py"
Traceback (most recent call last):
  File "/Users/hectorv/zipcodes/zips.py", line 1, in <module>
    import openpyxl
ImportError: No module named openpyxl"

ตอนที่ฉันพยายามที่จะติดตั้งอีกครั้งผมไปนี้:

hectorv@Hectors-MacBook-Air zipcodes % pip3 install openpyxl
Requirement already satisfied: openpyxl in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (3.0.9)
Requirement already satisfied: et-xmlfile in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from openpyxl) (1.1.0)
openpyxl python visual-studio-code
2021-11-24 00:28:15
1

คำตอบที่ดีที่สุด

1

คุณกำลังใช้ Code Runnerไม่ใช่เหรอ?

คุณสามารถหลีกเลี่ยงการใช้ Code Runner. หลังจากที่คุณเลือกใช้ตัวแปลคำสั่งภาษาไพธอน,คุณสามารถคลิกที่ Run Python File ปุ่มหรือถูกคลิกแล้วเลือก Run Python File In Terminal กองบัญชาการ

enter image description here

enter image description here

enter image description here

ถ้าคุณยืนกรานโดยใช้ Code Runnerคุณสามารถเพิ่ม "code-runner.runInTerminal": true, ในการตั้งค่าแล้วlanguage แฟ้ม นี่คือเพราะว่าถ้านายต้องหนี Code Runner โดยตรงใน OUTPUT แผมันจะเอาเปรียบของโกลบอล pythonนไม่สนใจตัวแปลคำสั่งภาษาไพธอนที่เลือกไว้โดยที่เป็นภาษาไพธอนเลื่อนเวลาออกไปหน่อย

2021-11-24 02:19:06

-ใช่-รหัสผ่านนักวิ่งส่วนขยายเป็นปัญหาขอบคุณ!
Hector

ในภาษาอื่นๆ

หน้านี้อยู่ในภาษาอื่นๆ

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................

ดังอยู่ในนี้หมวดหมู่

ดังคำถามอยู่ในนี้หมวดหมู่