This sounds like you have an issue with the script not being installed into your environment. This can happen due to a number of reasons:
pip
. This can be diagnosed using which pip
, which will show you the path of the pip binary you are running.jupyter
kernel is running in a different environment. This is more likely, as you may have accidentally installed jupyter globally (very easy to do).These steps are solutions to the potential causes I have listed, however, without additional information it is hard to give more detailed troubleshooting.
$ conda create -n myenv python=3.11 jupyter pip # or change python version to whatever you need
$ conda activate myenv
$ which pip
# /<path_to_conda_env>/bin/pip
$ pip install -e .
This solution is similar to the solution given by EsmaeelE. It is hard to diagnose this issue which getting additional info. If possible can you give us:
which pip
which pip -a
setup.py
pip install .
work?