我徒劳地尝试让 gTTS 在我的 win10 机器上运行。
我已经升级了点子。我已经跑pip install gtts
了,但它安装的只是一个叫做 UNKNOWN 的东西
pip list
给我:
Package Version
------------- -------
aiohttp 1.0.5
async-timeout 3.0.1
asyncio 3.4.3
cffi 1.12.2
chardet 3.0.4
discord 0.16.12
discord.py 0.16.12
multidict 4.5.2
pip 19.0.3
pycparser 2.19
PyNaCl 1.3.0
pyttsx 1.1
setuptools 28.8.0
six 1.12.0
UNKNOWN 2.0.3
websockets 3.4
注意我的 GTTS 应该在哪里的 UNKNOWN?
当我尝试安装时,我得到了这个:
Collecting gTTS
Using cached https://files.pythonhosted.org/packages/e6/37/f55346a736278f0eb0ae9f7edee1a61028735ef0010db68a2e6fcd0ece56/gTTS-2.0.3.tar.gz
Generating metadata for package gTTS produced metadata for project name unknown. Fix your #egg=gTTS fragments.
Requirement already satisfied (use --upgrade to upgrade): unknown from https://files.pythonhosted.org/packages/e6/37/f55346a736278f0eb0ae9f7edee1a61028735ef0010db68a2e6fcd0ece56/gTTS-2.0.3.tar.gz#sha256=a6d4cf039da2797de8af2da7c1f0ce700ac0b48601ce6c11a02b337fd6bdcf57 in c:\users\user\appdata\local\programs\python\python36\lib\site-packages
而且我不能通过它调用 gTTS from gtts import gTTS
,每次都会使我的程序崩溃。
请问,我做错了什么?