pip安装失败,并显示“no this option:nodeps”

2024-09-27 04:06:36 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在Windows上的Python2.7虚拟环境中安装我自己的Python2.7软件包,但是

    Installed c:\users\niklas\repos\ppy\engine
    Error: no such option: --no-deps

    ----------------------------------------
Command "c:\users\niklas\repos\ppy\engine\.env2\scripts\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\niklas\\repos\\ppy\\engine\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 2 in C:\Users\niklas\repos\ppy\engine\

当我进行正常安装时不会发生这种情况(没有-e标志)。我一直在检查Pip和setuptools的发行说明,但是它没有提到删除--no-deps选项。在

在调用setup()来打印sys.argv之前,我还在我的setup.py中添加了一个print,这给了我

^{pr2}$

所以一定是{}在抱怨。在安装到Python3.5虚拟环境中时,我也没有遇到这个错误。在

  • 来自c:\users\niklas\repos\ppy的pip 9.0.1\发动机.env2\lib\site包(python 2.7)
  • 设置工具34.3.1

Edit:事实证明,正常的安装也无法正常工作,但无法识别的是--record标志。在

    Installing node.py-script.py script to c:\users\niklas\repos\ppy\engine\.env2\Scripts
    Installing node.py.exe script to c:\users\niklas\repos\ppy\engine\.env2\Scripts
    Installing node.py.exe.manifest script to c:\users\niklas\repos\ppy\engine\.env2\Scripts
    writing list of installed files to 'c:\users\niklas\appdata\local\temp\pip-okk7gy-record\install-record.txt'
    Error: no such option: --record

Tags: tonodepspysetupscriptrecordexe

热门问题