简体   繁体   English

OSError:找不到起始路径(dotenv-0.21.0-py3.9.egg)

[英]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.

相关问题 Python 打包 - 如何生成 python 鸡蛋目录名称,如“myapp-0.2a40-py3.9-linux-x86_64.egg”? - Python packaing - How is the python egg dir name like `myapp-0.2a40-py3.9-linux-x86_64.egg` generated? jupyder notebook: OSError: [Errno 2] 在路径中找不到“点” - jupyder notebook: OSError: [Errno 2] "dot" not found in path OSError: Python library not found: libpython3.9mu.so.1.0, libpython3.9m.so, etc., when running pyinstaller - OSError: Python library not found: libpython3.9mu.so.1.0, libpython3.9m.so, etc., when running pyinstaller h5py OSError:无法打开文件(未找到文件签名) - h5py OSError: Unable to open file (File signature not found) OSError:[Errno 2]没有这样的文件或目录:'/usr/local/lib/python2.7/dist-packages/pyduino-0.0.0-py2.7.egg' - OSError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/pyduino-0.0.0-py2.7.egg' 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整的命令输出。 尝试安装 dotenv 时 - ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. when trying to install dotenv 基于打包(setup.py)的另一个文件的函数导入导致“找不到 .egg-info 目录” - Function import from another file based on packaging (setup.py) leads to "No .egg-info directory found" 在 macOS Big Sur 上安装 py3exiv2 失败 | 错误:在中找到 No.egg-info 目录 - Installation of py3exiv2 on macOS Big Sur fails | ERROR: No .egg-info directory found in setup.py bdist_egg没有将文件放入鸡蛋中 - setup.py bdist_egg is not putting files into the egg OSError:找不到“ .txt” - OSError: “.txt” not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM