【发布时间】:2019-08-29 20:01:43
【问题描述】:
尝试为 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'
【问题讨论】:
标签: python python-2.7 tkinter pip anaconda