79141185

Date: 2024-10-30 12:56:03
Score: 3
Natty:
Report link

Potential Causes

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:

  1. You are not using the correct pip. This can be diagnosed using which pip, which will show you the path of the pip binary you are running.
  2. The jupyter kernel is running in a different environment. This is more likely, as you may have accidentally installed jupyter globally (very easy to do).

Steps to try and fix:

These steps are solutions to the potential causes I have listed, however, without additional information it is hard to give more detailed troubleshooting.

  1. Create a fresh conda environment. When working with notebooks I highly recommend using conda rather than venv or virtualenv. Install conda if you don't have it already: https://github.com/conda-forge/miniforge (the best flavour of conda)
$ conda create -n myenv python=3.11 jupyter pip # or change python version to whatever you need

$ conda activate myenv
  1. Double check that the pip you are using is inside the conda env
$ which pip
# /<path_to_conda_env>/bin/pip
  1. Install package
$ pip install -e .
  1. Launch jupyter

Remarks

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:

Reasons:
  • Whitelisted phrase (-1): solution is
  • RegEx Blacklisted phrase (2.5): can you give us
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Oliver Wissett