I want to install and use a library called Synthetic Interventions. I install it like:
pip3 install -e git+https://github.com/deshen24/Synthetic-Interventions#egg=SI --user
I then go to my source folder (in my case located at C:/Users/jgrea/src/), where you should now see a folder called si. I rename this directory to SI.
SI
│ SI.py
│
└───src
│ │ cvxRegression.py
But then, when I run my code
import sys, os
sys.path.append("C:\\Users\\jgrea\\src")
sys.path.append(os.getcwd())
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from SI import SI
I get
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\jgrea\src\SI\SI.py", line 4, in <module>
from src.cvxRegression import ConvexRegression
ModuleNotFoundError: No module named 'src.cvxRegression'
(0 lines skipped)
I don't understand why I see this. When I look in the src folder in SI, I see a file named cvxRegression, the exact library SI asks for. So, why would this happen if we see this file in the folder in question? Perhaps, it's because there's no setup.py or init file?