python – 安装Quartz模块时“没有这样的文件:’requirements.txt’错误”

当我尝试使用pip install Quartz在我的系统上安装Quartz时,我面临以下错误.我使用Mac OSX和Anaconda.任何帮助表示赞赏.

Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>",line 1,in <module>
  File "/private/var/folders/sb/llj7h5px227_5b0__3v0sw5r0000gn/T/pip-build-qf8ezbu5/Quartz/setup.py",line 35,in <module>
    install_requires=read_dependencies("requirements.txt"),File "/private/var/folders/sb/llj7h5px227_5b0__3v0sw5r0000gn/T/pip-build-qf8ezbu5/Quartz/setup.py",line 7,in read_dependencies
    with open(req_file) as req:
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'

解决方法

包的setup.py中似乎有一个错误,所以我尝试了以下方法

>运行:pip download quartz.
>找到下载的quartz-0.0.1.dev0.tar.gz.
>提取并在setup.py中找到以下行

install_requires=read_dependencies(“requirements.txt")

并将其更改为:

install_requires=read_dependencies("quartz.egg-info/requires.txt")

>运行:pip install -e /path/to/quartz-0.0.1.dev0.

安装应该完成没有错误.

或者尝试这个(修复了ImportError:在安装pyautogui时遇到的安装pyautogui时没有名为’Quartz’的模块):

> pip install pyobjc-core> pip install pyobjc-framework-Quartz

相关文章

功能概要:(目前已实现功能)公共展示部分:1.网站首页展示...
大体上把Python中的数据类型分为如下几类: Number(数字) ...
开发之前第一步,就是构造整个的项目结构。这就好比作一幅画...
源码编译方式安装Apache首先下载Apache源码压缩包,地址为ht...
前面说完了此项目的创建及数据模型设计的过程。如果未看过,...
python中常用的写爬虫的库有urllib2、requests,对于大多数比...