0

我正在尝试安装 Pyforms 库,因此我尝试将 PyQt4 作为依赖项安装。PyQt4 将 SIP 作为依赖项,所以我也尝试从头开始构建该文件(通过 Pip 安装时,我被告知 sipconfig.py 不存在,出于某种原因?即便如此,我仍然会遇到这个问题最终)。

不幸的是,Microsoft Visual Studio 似乎不喜欢 SIP 自动生成的 Makefile。当我尝试运行 nmake 时,我得到了无数错误。有什么我可以在这里做的,还是我不可能继续下去?(或者,为我提供一个简单的 PyQt4/SIP 二进制安装程序)。恐怕我的深度不够。

以下是我尝试运行 NMAKE 时给出的错误:

NMAKE : warning U4001: command file can be invoked only from command line
NMAKE : warning U4001: command file can be invoked only from command line
NMAKE : warning U4001: command file can be invoked only from command line
NMAKE : warning U4001: command file can be invoked only from command line
NMAKE : warning U4001: command file can be invoked only from command line
NMAKE : warning U4001: command file can be invoked only from command line
NMAKE : warning U4001: command file can be invoked only from command line
NMAKE : fatal error U1073: don't know how to make 'all:'

这些是 Makefile 的内容:

all:
    cd sipgen
    $(MAKE)
    @cd ..
    cd siplib
    $(MAKE)
    @cd ..

install:
    cd sipgen
    $(MAKE) install
    @cd ..
    cd siplib
    $(MAKE) install
    @cd ..
    @if not exist "C:\Program Files (x86)\Python36-32\Lib\site-packages" mkdir "C:\Program Files (x86)\Python36-32\Lib\site-packages"
    copy /y sipconfig.py "C:\Program Files (x86)\Python36-32\Lib\site-packages\sipconfig.py"
    copy /y C:\Users\***\Downloads\sip-4.19.3\sip-4.19.3\sipdistutils.py "C:\Program Files (x86)\Python36-32\Lib\site-packages\sipdistutils.py"

clean:
    cd sipgen
    $(MAKE) clean
    @cd ..
    cd siplib
    $(MAKE) clean
    @cd ..
4

0 回答 0