gpt4 book ai didi

Python:pip 找不到 setup.py

转载 作者:行者123 更新时间:2023-11-30 23:24:17 28 4
gpt4 key购买 nike

如何引导 pip 查找 setup.py?我的 setup.py 文件位于 ~/setuptools-3.5.1

我跑了

dustin@dustin:~$ python setuptools-3.5.1/setup.py egg_info
running egg_info
writing requirements to setuptools.egg-info/requires.txt
writing setuptools.egg-info/PKG-INFO
writing top-level names to setuptools.egg-info/top_level.txt
writing dependency_links to setuptools.egg-info/dependency_links.txt
writing entry points to setuptools.egg-info/entry_points.txt
reading manifest file 'setuptools.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'setuptools.egg-info/SOURCES.txt'
dustin@dustin:~$

所以看起来一切都很好,但是当我运行 pip 时,我得到

Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/matplotlib
Storing debug log for failure in /home/dustin/.pip/pip.log

我的印象是,当我运行 pip 时,它找不到 setup.py

最佳答案

导航到包含 setup.py 的目录并运行:

pip install -e .

关于Python:pip 找不到 setup.py,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23527841/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com