[英]OSError: Starting path not found (dotenv-0.21.0-py3.9.egg)
I'm developing a script in Python 3.9 that works perfectly on my personal PC.我正在 Python 3.9 中开发一个脚本,它可以在我的个人电脑上完美运行。 When I tried moving and running it on a server, which has an older python version, it gives me the following error:
当我尝试在具有较旧 python 版本的服务器上移动和运行它时,它给了我以下错误:
Does anyone know how to fix this error?有谁知道如何解决这个错误?
I tried to install dotenv via pip manually, but it doesn't work.我尝试通过 pip 手动安装 dotenv,但它不起作用。
I think you should use Pylaucher, to start Pylaucher you must Use Shebang (#) in The Script Run Pylauncher Command.我认为您应该使用 Pylaucher,要启动 Pylaucher,您必须在脚本运行 Pylauncher 命令中使用 Shebang (#)。 Then you will be able to run multiple versions of python in Windows without getting errors.
然后,您将能够在 Windows 中运行多个版本的 python 而不会出现错误。 There are too many methods you can use;
您可以使用的方法太多了; I strongly suggest this one since has once worked for me.
我强烈建议这个曾经为我工作过。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.