英文:
Mac: dotenv install error: subprocess-exited-with-error: Preparing metadata (pyproject.toml): finished with status 'error'
问题
安装dotenv时出现错误...我是个新手。尝试搜索解决方案,但没有找到适合我的,所以希望找到能直接指导我正确答案的人...抱歉。
有人在另一个帖子中说需要QT5...尝试安装QT5也遇到了错误。
尝试安装QT5但找不到文件夹,尝试使用brew,但brew找不到。
英文:
Install dotenv error... I am a rookie. Tried to google solution and did not find one that works for me.. so hoping to find someone who can directly coaching me the right answer... sorry
someone said in other thread that it needs QT5.. try to install and intall QT5 also faced error
Collecting dotenv
Using cached dotenv-0.0.5.tar.gz (2.4 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install backend dependencies did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Collecting distribute
Using cached distribute-0.7.3.zip (145 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'dist_info'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install backend dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Tried to install QT5 but cannot find the fold, tried to use brew, but brew did not find
答案1
得分: 2
我在Windows上遇到了这个问题。其他答案 对我没有用。然而,运行这个命令可以解决:
pip install python-dotenv
英文:
I ran into this issue on Windows. The other answer didn't work for me. However, running this did:
pip install python-dotenv
答案2
得分: 0
我认为问题与 distribute
包有关,而不是 dotenv
。请升级 pip
和 setuptools
,然后单独安装 distribute
,然后尝试重新安装 dotenv
。
升级 pip
和 setuptools
:
python -m pip install --upgrade pip setuptools
单独安装 distribute
:
pip install distribute
重试安装 dotenv
:
pip install dotenv
英文:
I think that the issue is related to the distribute
package rather than dotenv
. Update pip
and setuptools
, install distribute
separately, and then attempting to install dotenv
again.
Update pip
and setuptools
:
python -m pip install --upgrade pip setuptools
Install distribute
separately:
pip install distribute
Retry installing dotenv
:
pip install dotenv
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论