我无法使用 pyVim 让我的 python 程序在 Centos 机器上运行。据我所知,一切都正确安装在正确的位置,但它仍然声称找不到。这可以在另一台机器上正确运行(具有相同的 python/pip 版本),我在该机器上安装了 pyvim 而没有发生意外,所以代码应该是好的。
$ python3.8 vm_status_check.py
ModuleNotFoundError: No module named 'pyVim'
$ python3.8 -m pip install pyvim
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pyvim in /home/lab-user/.local/lib/python3.8/site-packages (3.0.2)
$ python3.8 -m 站点
sys.path = [
'/home/lab-user/Mandalorian-Labs',
'/usr/local/lib/python38.zip',
'/usr/local/lib/python3.8',
'/usr/local/lib/python3.8/lib-dynload',
'/home/lab-user/.local/lib/python3.8/site-packages',
'/usr/local/lib/python3.8/site-packages',
]
USER_BASE: '/home/lab-user/.local' (exists)
USER_SITE: '/home/lab-user/.local/lib/python3.8/site-packages' (exists)
ENABLE_USER_SITE: True
$ ls /home/lab-user/.local/lib/python3.8/site-packages
Pygments-2.7.1.dist-info prompt_toolkit pygments six.py
__pycache__ prompt_toolkit-3.0.7.dist-info pyvim wcwidth
docopt-0.6.2-py3.8.egg-info pyflakes pyvim-3.0.2.dist-info wcwidth-0.2.5.dist-info
docopt.py pyflakes-2.2.0.dist-info six-1.15.0.dist-info
所以,据我所知,一切看起来都井井有条。但是“ModuleNotFoundError: No module named 'pyVim'”仍然存在。会不会是其他原因造成的?