title: ModuleNotFoundError: No module named 'urlparse'
body: <p>I am getting the following error when I am importing StockTradingEnv. I cannot understand how to do away with it.</p>
  <blockquote>
  <p>from env.StockTradingEnv import StockTradingEnv</p>
  </blockquote>
  <p>I even tried importing <strong>urlparse</strong> the following, but even that does not help</p>
  <blockquote>
  <p>from urllib.parse import urlparse</p>
  </blockquote>
  <p>Background: I am using the tutorial here to learn how to make a reinforcement learning environment from <a href="https://towardsdatascience.com/creating-a-custom-openai-gym-environment-for-stock-trading-be532be3910e" rel="nofollow noreferrer">this blog</a>.</p>
  <p>ERRoR</p>
  <pre><code>---------------------------------------------------------------------------
  ModuleNotFoundError                       Traceback (most recent call last)
  &lt;ipython-input-1-68b0ade668b4&gt; in &lt;module&gt;
        7 from stable_baselines import PPO2
        8 
  ----&gt; 9 from env.StockTradingEnv import StockTradingEnv
       10 import pandas as pd
  
  ~\Anaconda3\lib\site-packages\env.py in &lt;module&gt;
        2 
        3 from os import environ
  ----&gt; 4 from urlparse import urlparse as _urlparse
        5 
        6 
  
  ModuleNotFoundError: No module named 'urlparse'
  </code></pre>