python - 如何在python中安装fontTools

标签 python python-3.x

我在Windows中用python 3.6.2(32位)编写了一个程序,并导入了以下库。

from tkinter import font
from fontTools.ttLib import TTFont
from tkinter import messagebox
import tkinter.font as font
from tkinter.ttk import Separator, Style
from tkinter.filedialog import *
import tkinter as tkfont 

当我运行代码时,出现此错误:

No module named 'fontTools'

当我通过此命令安装模块时:

pip install fontTools

我收到以下错误:

Could not find a version that satisfies the requirement fontTools (from versions: )
No matching distribution found for fontTools

我该如何解决这个问题?

最佳答案

作为documentation states :

pip install fonttools

全部小写。

关于python - 如何在python中安装fontTools,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46895030/

相关文章:

Python - 使用csv模块重写后CSV文件为空

python - 执行功能的条件

python - Tensorflow 无法识别 cudart64_101.dll

django - 尝试使用 cookiecutter-django,出现错误并且没有创建任何内容

python - 如何收集每张工作表中特定行的所有值?

python - 如何让ffmpeg自动覆盖同名文件?

python - plotly graph_objects 可以与 Azure 数据资源管理器一起使用吗?

python - 替换 pandas DataFrame 中的越界(复杂)值

python - 为 Pandas 中的一组列设置新值

不同服务器上的 Python 3.5 dill pickling/unpickling : "KeyError: ' ClassType'"