无法使用Python 3.6安装枕头

时间:2019-12-06 07:16:05

标签: python windows

我为离线计算机下载了Pillow软件包,并尝试使用以下命令在本地安装它:

if let remoteNotification = launchOptions?[.remoteNotification] as?  [AnyHashable : Any] {

        if let userInfo = remoteNotification as? [String : Any]
        {
            DispatchQueue.main.asyncAfter(deadline: .now()+1.0, execute: {
            UIApplication.shared.applicationIconBadgeNumber = 0
            let notificationManager = PushNotificationManager()
            notificationManager.handleNotificationAction(data: userInfo)
        })
        }
    }

但是会出现以下错误:

找不到zlib的头文件或库文件

然后我尝试使用Python 3.7、3.8进行安装,并且出现相同的错误。

1 个答案:

答案 0 :(得分:1)

在Windows中,由于框架问题,某些软件包无法使用。可以通过第三方网站下载并使用相同的软件包。

{{3}}

选择相应的版本下载相同的内容。

然后例如

pip install Downloads\\Pillow.whl

现在它将正确安装