I want to install and use a library called Synthetic Interventions in Python. You can install it from the Windows command line like:
I then go to my source folder (in my case located at C:/Users/jgrea/src/), where you should now see a folder called synthetic-interventions. I rename this directory to syntheticinterventions, and move said folder to where all of my other Python packages are on my machine (for me: C:\Users\jgrea\AppData\Local\Programs\Python\Pytho n39\Lib\site-packages).
But then, when I run my Python code
Python tells me
So, Python is clearly looking in the correct folder for where SI is (i.e., it knows syntheticinterventions is the directory to look in), but it says that ConvexRegression isn't to be found, even though it's in the src folder along with the rest of the library. Why might this be?
Note that this is a crosspost from Stack.
Code:
pip3 install -e git+https://github.com/deshen24/Synthetic-Interventions#egg=Synthetic-Interventions --user
But then, when I run my Python code
Code:
python: import sys, os import numpy as np import pandas as pd import matplotlib.pyplot as plt from syntheticinterventions import SI end
Code:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\jgrea\AppData\Local\Programs\Python\Python39\lib\site-packages\syntheticinterventions\SI.py", line 4, i > n <module> from src.cvxRegression import ConvexRegression ModuleNotFoundError: No module named 'src.cvxRegression' (0 lines skipped)
Note that this is a crosspost from Stack.