小编chi*_*fer的帖子

Apple M1 的 Cplex 安装“找不到满足...的版本”和“没有匹配的发行版”

我正在尝试在我的 M1 上运行 cplex。我希望我可以让它在 python 3.8/9 上运行,因为我还需要运行tensorflow(我通过 miniconda for M1 运行)。当我尝试在 miniconda python 环境中 pip install 时,出现以下错误:

ERROR: Could not find a version that satisfies the requirement cplex (from versions: none)
ERROR: No matching distribution found for cplex
Run Code Online (Sandbox Code Playgroud)

cplex python-3.x python-3.8 python-3.9 apple-m1

7
推荐指数
1
解决办法
987
查看次数

无法在 MacOS 11.1 上使用 pyenv 安装带有共享库的 Python 构建

我在尝试安装启用了共享库的 Python 3.8.6 时遇到错误。我在 M1 Macbook Pro 上使用 PyEnv 1.2.23。

特别是,运行:

$ env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.8.6
Run Code Online (Sandbox Code Playgroud)

返回错误信息:

python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.8.6.tar.xz...
-> https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tar.xz
Installing Python-3.8.6...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 11.1 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/b7/nnczj7h90wn8ds7ht2ljn2l80000gn/T/python-build.20210309124942.97911
Results logged to /var/folders/b7/nnczj7h90wn8ds7ht2ljn2l80000gn/T/python-build.20210309124942.97911.log

Last 10 log lines:
checking size of _Bool... 1
checking size of off_t... 8 …
Run Code Online (Sandbox Code Playgroud)

python macos pyenv macos-big-sur apple-m1

6
推荐指数
1
解决办法
2022
查看次数