首页 > 解决方案 > ./configure 在 Windows 上的 python 3.8.2 上不起作用

问题描述

我正在尝试执行代码:

./configure \
        --prefix "$(dirname $(pwd))" \
        --with-openssl=$(openssl version -d | sed  -r 's/OPENSSLDIR: "([^"]*)"/\1/') \
    && make && make install
popd

收到此错误:

  File "<ipython-input-7-f69304efaff4>", line 1
    ./configure
    ^
SyntaxError: invalid syntax

有谁知道如何修理它?

标签: pythonpython-3.xwindowsconfigurationconfigure

解决方案


这段代码应该在 bash shell 中执行,而不是 python


推荐阅读