title: How do you extract packages installed by pip and import onto another computer with no internet?
body: <p>There is a project in another laptop which is unable to connect to the internet (Lan only), so <code>pip install requests</code> is impossible.</p>
  
  <p>main.py:</p>
  
  <pre><code>import requests
  r = requests.get('http://localhost/')
  </code></pre>
  
  <p>__</p>
  
  <p>I've tried to copy <code>certifi</code>, <code>chardet</code>, <code>idna</code>, <code>requests</code>, <code>urllib3</code> from <code>site-packages</code> and import without a problem when the dependency is in the same folder</p>
  
  <pre><code>Project
  ├── certifi
  ├── chardet
  ├── idna
  ├── main.py
  ├── requests
  └── urllib3
  </code></pre>
  
  <p>__</p>
  
  <p>But it can't be imported when dependency in subdirectory <code>supportFiles</code></p>
  
  <p>main.py:  </p>
  
  <p><code>import supportFiles.requests</code>  </p>
  
  <p>Output : no module named urllib3...</p>
  
  <pre><code>Project                         
      ├── main.py
      └── supportFiles
          ├── __init__.py
          ├── certifi
          ├── chardet
          ├── idna
          ├── requests
          └── urllib
  </code></pre>
  
  <p>what should I do?</p>