加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

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

发布时间:2020-12-20 12:12:07 所属栏目:Python 来源:网络整理
导读:当我尝试使用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 "/
当我尝试使用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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读