title: How to use pipreqs to create requirements.txt file
body: <p>I am trying to use the pipreqs package to generate a requirements.txt file. <a href="https://github.com/bndr/pipreqs" rel="noreferrer">Following the documentation's examples</a> I have been unable to make it work. </p>
  
  <p>It seems simple enough, the documentation tells me to use this command in the terminal:</p>
  
  <pre><code>$ pipreqs /home/project/location
  </code></pre>
  
  <p>In my case, this is the location of my project:</p>
  
  <pre><code>$ pipreqs /Users/ep9k/Desktop/UVA\ Big\Deal
  </code></pre>
  
  <p>And I get this error message:</p>
  
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory: '/Users/ep9k/Desktop/UVA BigDeal/requirements.txt'
  </code></pre>
  
  <p>The error message is correct, there is no requirements.txt file in that directory. I am trying to use pipreqs to create the requirements.txt file.</p>
  
  <p>Reading the documentation, pipreqs is supposed to scan a python file for import statements and build the requirements.txt document based on that. So I tried this as well, with the file I want pipreqs to scan:</p>
  
  <pre><code>$ pipreqs /Users/ep9k/Desktop/UVA\ Big\Deal/1FigrFunctions.py
  </code></pre>
  
  <p>and I received this error, which is pretty much the same as above:</p>
  
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory: '/Users/ep9k/Desktop/UVA BigDeal/1FigrFunctions.py/requirements.txt'
  </code></pre>
  
  <p>I am sure the solution is obvious. What am I doing wrong?</p>