title: Windows FileNotFoundError: [Errno 2] No such file or directory
body: <p>I want to use <code>'os.path.join'</code> to open a file, the file exists, but I can not open it and get an error <code>"FileNotFoundError"</code>.</p>
  
  <p>This is running python3.6, using PyCharm in Windows10.</p>
  
  <p>The error is occur in this function:</p>
  
  <pre class="lang-py prettyprint-override"><code>def get_encoder(model_name):
      with open(os.path.join('models', model_name, 'encoder.json'), 'r') as f:
          encoder = json.load(f)
  </code></pre>
  
  <p>The output is <code>' FileNotFoundError: [Errno 2] No such file or directory: 'models\ \345M\ \encoder.json'</code></p>
  
  <p>My file directory is <code>' ...\models\345M\encoder.json '</code><br>
  The function is defined by <code>' ...\encode.py '</code></p>
  
  <p><a href="https://postimg.cc/9rPxWyRq" rel="nofollow noreferrer"><img src="https://i.postimg.cc/02Fh0f9Z/20190519230831.png" alt="20190519230831.png"></a></p>