I am trying to install a local package in python by running
pip install -e .
in the folder containing setup.py. Doing so works fine.
as part of the installation I want to run a few addition commands which involve external packages. So as part of my setup.py I would like to import those packages (e.g. pandas). However, when trying to run the installation with this import I get the following error:
ModuleNotFoundError: No module named 'pandas'
I suspected that the problem was simply being caused by an incorrect version of python being called so I checked this by writing sys.executable to a file. When I open a python REPL from sys.executable in terminal I can import pandas.
Any ideas what could be causing this?!