Installing a Python Package in the Current Directory With pip Example below uses pip3 to install the pytrends package and its dependencies inside a subfolder called package within the current directory. pip3 install pytrends --target ./package