python kiwisolver_MacOS,Python:ModuleNotFoundError:没有名为“kiwisolver”的模块

在尝试在MacOS Sierra的Atom中使用Python 3.6导入kiwisolver时,遇到了ModuleNotFoundError。尽管已通过pip安装了kiwisolver,但因Python 2.7被默认执行导致导入失败。解决方案可能包括设置Python路径或使用Python 3的正确版本运行程序。
摘要由CSDN通过智能技术生成

我试图在MacOS Sierra上的Atom中导入kiwisolver,但我得到了一个错误:找不到它:

输入:import kiwisolver as kiwi

输出:Traceback (most recent call last):

File "/Users/Kev/Documents/Uvic/Python/PHYS 321B/A6Q5&6_Coupled_Oscillators_Matrix.py", line 3, in

import kiwisolver as kiwi

ModuleNotFoundError: No module named 'kiwisolver'

问题是它已经安装:w134-87-183-190:~ Kev$ sudo python -m pip install kiwisolver

The directory '/Users/Kev/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/Users/Kev/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may wa

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值