Setting the place Python Looks for Files in CMD

95 views Asked by At

I'm trying to run a python program off the internet that uses files linked relative to it's location. When I try to run it, cmd says:

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'

Any Suggestions?

0

There are 0 answers