繁体   English   中英

IOError:[Errno 2]没有这样的文件或目录:'requirements.txt'(没有名为c的模块)

[英]IOError: [Errno 2] No such file or directory: 'requirements.txt' (no module named c)

尝试为GUI运行一些代码,如果我将其作为笔记本文件运行,偶尔会有效(其他时候它会尝试编译而没有任何反应)。

我试图将它作为.py文件运行,我得到一个错误,模块“c”试图下载但失败,因为“requirements.txt”不存在。

我使用anaconda(gl-env)2.7作为我的项目解释器,并尝试使用以下命令安装/查找requirements.txt文件:

pip install -r requirements.txt

我得到文件/目录不存在的错误。

当我运行我的程序时,这是我得到的错误:

Collecting c
  Downloading https://files.pythonhosted.org/packages/fc/5f/1130c201f3138745970f8de520095a942cdd174e8f84faf04ce77c434d8d/c-0.1.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Tommy\AppData\Local\Temp\pycharm-packaging\c\setup.py", line 6, in <module>
        with open('requirements.txt') as fh:
    IOError: [Errno 2] No such file or directory: 'requirements.txt'

根据此模块的PKG-INFO

        ## Installing

        This is a python 3 package, and requires python 3.5.
        To install, type in the terminal:

            pip3 install c

看起来你不能用这个2.7。 作为一个说明,我没有pip安装,我只是跑了

curl --output c-0.1.0.tar.gz https://files.pythonhosted.org/packages/fc/5f/1130c201f3138745970f8de520095a942cdd174e8f84faf04ce77c434d8d/c-0.1.0.tar.gz

下载tar存档

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM