python - "No such file: ' requirements.txt ' error"while installing Quartz module

标签 python pip quartz

当我尝试使用 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 似乎有错误,所以我尝试了以下操作:

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

    install_requires=read_dependencies(“requirements.txt")
    

    并将其更改为:

    install_requires=read_dependencies("quartz.egg-info/requires.txt")
    
  4. 运行:pip install -e/path/to/quartz-0.0.1.dev0

设置应该已完成,没有错误。

或者试试这个(修复 ImportError: No module named 'Quartz when installing pyautogui 我在安装 pyautogui 时遇到):

  1. pip install pyobjc-core
  2. pip install pyobjc-framework-Quartz

关于python - "No such file: ' requirements.txt ' error"while installing Quartz module,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42530309/

相关文章:

spring-boot - spring boot - 禁用 quartz 调度程序

python - 在 Matplotlib 中为线上的单个点设置标记

c# - 从 python 脚本执行 c# 控制台应用程序-好的设计?

javascript - Selenium RC 中的 selectCancelOnNextConfirmation 替代方案

python - 无法在 virtualenv 中安装 mySQL-python

python - pip requirement.txt 基于环境变量的条件或环境标记

swift - 两个半透明矩形重叠而不改变公共(public)区域颜色

Python 请求变得非常慢,更好的选择?

python - Virtualenvwrapper:没有名为 virtualenvwrapper 的模块

java - Spring Quartz 使用父类构造函数设置基于构造函数的注入(inject)