79328465

Date: 2025-01-04 08:30:01
Score: 1.5
Natty:
Report link

Just recalled I asked this question a while ago. One possible thing to do is to add the local file to PYTHONPATH.

So

export PYTHONPATH='${PYTHONPATH}:path/to/local/file'

will allow Python to search for the package in the current folder.

However, it is necessary to remove the original file, OR create a venv

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nikola Tolzsek