title: how to install packages inside virtualenv
body: <p>I have a virtualenv created for a Django project. Inside this project I have app folder with 'views.py'. </p>
  
  <p>I have installed beautiful soup and requests inside this virtualenv and they import correctly into the 'views.py'.</p>
  
  <p>However, for testing puroposes I have another script created inside the same folder as 'views.py' but when I try to import same modules there I get 'no module named...' error. </p>
  
  <p>Virtualenv pip freeze looks like that:</p>
  
  <pre><code>beautifulsoup4==4.6.0
  certifi==2018.1.18
  chardet==3.0.4
  Django==2.0.3
  idna==2.6
  pkg-resources==0.0.0
  pytz==2018.3
  requests==2.18.4
  selenium==3.10.0
  urllib3==1.22
  </code></pre>
  
  <p>Views.py:</p>
  
  <pre><code>from django.shortcuts import render
  import os
  import webbrowser
  import requests, bs4
  import re
  from .forms import RoomForm
  from django.shortcuts import render
  from django.http import HttpResponseRedirect
  #~ #-*- coding: utf-8 -*-
  
  #~ # Create your views here.
  
  def index(request):
      if request.method == 'POST':
          print('PPPPPPOOOOOOOOSSSSSSSTTTTTTT')
          form = RoomForm(request.POST)
          if form.is_valid():
              print('VAAAALLLLLLIIIIIIDDDDDDDD')
              global form_data
              form_data = form.cleaned_data
              return HttpResponseRedirect('results')
      else:
          print('GGGGEEEEEETTTTT')
          form = RoomForm()
  
  
      context = {'form': form}
      return render(request, 'javascript/index.html', context)
  
  def results(request):
      print(request.method)
      city = form_data['city'].title()
      print(city)
      prices = []
      real_prices = []
      url = 'https://www.airbnb.pl/s/' + city +'--Hiszpania/homes?refinement_paths%5B%5D=%2Fhomes&amp;query=' + city + '%2C%20Hiszpania&amp;checkout=2018-04-22&amp;children=0&amp;infants=0&amp;adults=2&amp;guests=2&amp;allow_override%5B%5D=&amp;price_max=252&amp;room_types%5B%5D=Entire%20home%2Fapt&amp;min_beds=0&amp;s_tag=Ph6ohhjw'
      webbrowser.open(url)
      response = requests.get(url)
      response_text = response.text
      airbnb_soup = bs4.BeautifulSoup(response_text)
      page_selectors = airbnb_soup.select('._1bdke5s')
      print(len(page_selectors))
      last_page_selector = page_selectors[len(page_selectors) - 1]##############-15
      last_page_selector = last_page_selector.getText()
      for x in range(0, int(last_page_selector)):
          response = requests.get(url + '&amp;section_offset=' + str(x))
          response_text = response.text
          airbnb_soup = bs4.BeautifulSoup(response_text)
          spans = airbnb_soup.select('._hylizj6 span')
          for i in range(0, len(spans)):
              prices.append(spans[i].getText())
          for price in prices:
              if 'zł' in price:
                  real_prices.append(price)
      real_prices.sort()
      print(real_prices)
      #print(real_prices)
      context = {'response_text': response_text, 'airbnb_soup': airbnb_soup,'spans': spans, 'real_prices': real_prices}
      return render(request, 'javascript/results.html',context)
  </code></pre>
  
  <p>How do I make those modules import correctly?</p>
  
  <p>EDIT: I commented out everything in my 'views.py' except <code>import bs4, requests</code> and I get the same error. However they both work fine when my app is run on the development server. </p>