更新时间:2023-02-22 11:02:36
有一些可能的原因可能导致这种情况:
There are a few possible things that can be causing this:
import sys; print(sys.executable)
import os; print(os.getcwd())
sys.path
中的差异(python依次搜索导入位置的列表)可能是环境变量引起的.用import sys; print(sys.path)
检查. import sys; print(sys.executable)
import os; print(os.getcwd())
sys.path
, which is the list python searches sequentially for import locations, can possibly caused by environment variables. Check with import sys; print(sys.path)
.