设置场所Python在CMD中查找文件

时间:2015-06-08 21:28:36

标签: python relative

我试图在互联网上运行一个python程序,该程序使用相对于它的位置链接的文件。当我尝试运行它时,cmd说:

C:\Users\John's Account>Python
C:\PythonWorkingDirectory\udemy-dl-master\setup.py Traceback (most recent call last):
   File "C:\PythonWorkingDirectory\udemy-dl-master\setup.py", line 10, in <module>
     requirements = [pkg.split('=')[0] for pkg in open('requirements.txt').readlines()]
  FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'

任何建议?

0 个答案:

没有答案