我在mac os 10.13.6上安装了miniconda,我想在已经安装Python3.9
的同一conda环境中安装PyPy3.7
。但是,当我尝试安装PyPy时,会出现以下依赖性错误。
(my_conda_env)$ conda install -c conda-forge pypy3.7
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
Package ncurses conflicts for:
python=3.9 -> readline[version='>=8.0,<9.0a0'] -> ncurses[version='>=6.1,<6.3.0a0|>=6.1,<7.0a0']
python=3.9 -> ncurses[version='>=6.2,<6.3.0a0|>=6.2,<7.0a0']
Package openssl conflicts for:
python=3.9 -> openssl[version='>=1.1.1h,<1.1.2a|>=1.1.1i,<1.1.2a|>=1.1.1j,<1.1.2a|>=1.1.1k,<1.1.2a']
pypy3.7 -> openssl[version='>=1.1.1i,<1.1.2a|>=1.1.1k,<1.1.2a']
Package libcxx conflicts for:
python=3.9 -> libcxx[version='>=10.0.0|>=10.0.1|>=11.0.0|>=11.0.1']
python=3.9 -> libffi[version='>=3.3,<3.4.0a0'] -> libcxx[version='>=4.0.1|>=9.0.1']
这很奇怪,因为三次冲突中有两次似乎是因为蟒蛇3.9与自己发生了冲突。此外,从下面的信息中可以看出,openssl
、ncurses
和libcxx
的安装版本应该满足上述所有约束。有什么帮助吗?
(my_conda_env)$ conda list
# packages in environment at /Users/Sirion/miniconda3/envs/ro:
#
# Name Version Build Channel
...
libcxx 11.1.0 habf9029_0 conda-forge
libffi 3.3 h046ec9c_2 conda-forge
...
ncurses 6.2 h2e338ed_4 conda-forge
...
openssl 1.1.1k h0d85af4_0 conda-forge
...
python 3.9.4 h9133fd0_0_cpython conda-forge
python_abi 3.9 1_cp39 conda-forge
readline 8.1 h05e3726_0 conda-forge
...
(my_conda_env)$ conda info
active environment : my_conda_env
active env location : -- OMISSIS --
shell level : 2
user config file : -- OMISSIS --
populated config files : -- OMISSIS --
conda version : 4.10.1
conda-build version : not installed
python version : 3.8.0.final.0
virtual packages : __osx=10.13.6=0
__unix=0=0
__archspec=1=x86_64
base environment : -- OMISSIS -- (writable)
conda av data dir : -- OMISSIS --
conda av metadata url : https://repo.anaconda.com/pkgs/main
channel URLs : http://conda.anaconda.org/gurobi/osx-64
http://conda.anaconda.org/gurobi/noarch
https://conda.anaconda.org/conda-forge/osx-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : -- OMISSIS --
-- OMISSIS --
envs directories : -- OMISSIS --
-- OMISSIS --
platform : osx-64
user-agent : conda/4.10.1 requests/2.25.1 CPython/3.8.0 Darwin/17.7.0 OSX/10.13.6
UID:GID : 501:20
netrc file : None
offline mode : False
不可能康达的冲突报告不可靠。使用mamba
运行可以清楚地识别出pypy3.7
有python=3.7
约束,即不能在同一环境中共同安装Python 3.9。
曼巴输出
$ mamba create -n foo python=3.9 pypy3.7
__ __ __ __
/ / / /
/ / / /
███████████████/ /██/ /██/ /██/ /████████████████████████
/ / / / / ____
/ / _/ _/ _/ o __,
/ _/ _____/ `
|/
███╗ ███╗ █████╗ ███╗ ███╗██████╗ █████╗
████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
██╔████╔██║███████║██╔████╔██║██████╔╝███████║
██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
██║ ╚═╝ ██║██║ ██║██║ ╚═╝ ██║██████╔╝██║ ██║
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝
mamba (0.11.1) supported by @QuantStack
GitHub: https://github.com/mamba-org/mamba
Twitter: https://twitter.com/QuantStack
█████████████████████████████████████████████████████████████
Looking for: ['python=3.9', 'pypy3.7']
bioconda/osx-64 [====================] (00m:01s) Done
bioconda/noarch [====================] (00m:01s) Done
pkgs/r/noarch [====================] (00m:00s) No change
pkgs/r/osx-64 [====================] (00m:00s) No change
pkgs/main/osx-64 [====================] (00m:01s) Done
pkgs/main/noarch [====================] (00m:00s) Done
conda-forge/noarch [====================] (00m:01s) Done
conda-forge/osx-64 [====================] (00m:04s) Done
Encountered problems while solving:
- package pypy3.7-7.3.3-hb2afd79_3 has constraint python 3.7.* *_73_pypy conflicting with python-3.9.0-h88f2d9e_1