OSError: Starting path not found (dotenv-0.21.0-py3.9.egg)

647 Views Asked by At

I'm developing a script in Python 3.9 that works perfectly on my personal PC. When I tried moving and running it on a server, which has an older python version, it gives me the following error:

error

Does anyone know how to fix this error?

I tried to install dotenv via pip manually, but it doesn't work.

2

There are 2 best solutions below

1
On

I think you should use Pylaucher, to start Pylaucher you must Use Shebang (#) in The Script Run Pylauncher Command. Then you will be able to run multiple versions of python in Windows without getting errors. There are too many methods you can use; I strongly suggest this one since has once worked for me.

0
On

This could be the same issue than there, where the problem was using python setup.py install instead of pip install .. So it is a problem related to the project installation and not the python-dotenv installation.