我做了
pip install playsound
Downloading/unpacking playsound
Downloading playsound-1.2.2-py2.py3-none-any.whl
Installing collected packages: playsound
Successfully installed playsound
Cleaning up...
它安装了playsound(至少是这样说的),但是当我输入
python3
Python 3.4.2 (default, Sep 16 2019, 19:58:00)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import playsound
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'playsound'
有没有模块?为什么会这样?哦,我刚刚发现当我使用python2时尝试导入这个没有问题。python3和playsound肯定有问题?我如何用python3导入它?