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, it gives me the following error:
Does anyone know how to fix this error?
Laptop version: 3.10.7 server version: 3.9.0
I tried to install dotenv via pip manually, but it doesn't work.
also tried shebang but doesnt work.
This could be the same issue than there, where the problem was using
python setup.py install
instead ofpip install .
.