"没有这样的文件:' requirements.txt'错误"同时安装Quartz模块

时间:2017-03-01 11:18:30

标签: 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'

2 个答案:

答案 0 :(得分:9)

包的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

  5. 安装应该没有错误完成。

    或者尝试这个(修复了导入错误:在安装pyautogui时遇到的安装pyautogui时没有名为'Quartz'的模块):

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

答案 1 :(得分:2)

这是quartz package的错误,requirements.txt MANIFEST.insetup.py文件中的quartz文件错误,因此pip download quartz错误来源$slider = $('#slider'); // Apply max to redraw slider $slider.slider({ max: value }); 。由于糟糕的建筑设计,它不会很快修复,因为它目前已被放弃。

所以你可以:

  • author's comment on GitHub issue手动下载来源并从那里运行 <PropertyGroup> <CopyAllFilesToSingleFolderForMsdeployDependsOn> ExcludeCustomFilesOrFolders; $(CopyAllFilesToSingleFolderForPackageDependsOn); </CopyAllFilesToSingleFolderForMsdeployDependsOn> </PropertyGroup> <Target Name="ExcludeCustomFilesOrFolders" BeforeTargets="ExcludeFilesFromPackage"> <ItemGroup> <ExcludeFromPackageFolders Include="$(MSBuildProjectDirectory)\Media" /> </ItemGroup> <Message Text="Custom Exclude From %0D Folders: @(ExcludeFromPackageFolders)%0D Files: @(ExcludeFromPackageFiles)" Importance="high"/> </Target> 以安装provisioner "chef" { environment = "terraform" run_list = ["cookbook::recipe"] node_name = "chefclient1" server_url = "https://1.2.3.4/organizations/terraform" recreate_client = true user_name = "my_username" user_key = "${file("chefuser.pem")}" version = "12.4.1" ssl_verify_mode = "verify_none" connection { user = "ubuntu" private_key = "${file("test.pem")}" agent = "false" timeout = "30s" } } 包。
  • aws_instance.chefclient (chef): ERROR: Failed to authenticate to https://52.23.2 43.121/organizations/terraform/ as my_username with key /etc/chef/my_username.pem aws_instance.chefclient (chef): Response: Invalid signature for user or client 'akajain' 下载程序包,并将GitHub中缺少的GitHub放入已提取的源中,然后运行安装。
  • 或按照requirements.txt file中提供的步骤进行操作。

新版本正在进行中,很快就会发布。