anaconda安装python 3.11

最近需要测试gpt researcher项目,gpt researcher项目的环境是3.11,于是用anaconda创建一个虚拟环境,结果报错了:


UnsatisfiableError: The following specifications were found to be incompatible with each other:



Package xz conflicts for:
python=3.11 -> xz[version='>=5.2.10,<6.0a0|>=5.2.8,<6.0a0|>=5.4.2,<6.0a0']
Package pip conflicts for:
python=3.11 -> pip
Package ncurses conflicts for:
python=3.11 -> ncurses[version='>=6.3,<7.0a0|>=6.4,<7.0a0']
Package libffi conflicts for:
python=3.11 -> libffi[version='>=3.4,<3.5,>=3.4,<4.0a0']
Package ld_impl_linux-64 conflicts for:
python=3.11 -> ld_impl_linux-64[version='>=2.35.1|>=2.36.1']
Package bzip2 conflicts for:
python=3.11 -> bzip2[version='>=1.0.8,<2.0a0']
Package tzdata conflicts for:
python=3.11 -> tzdata
Package zlib conflicts for:
python=3.11 -> zlib[version='>=1.2.13,<1.3.0a0']
Package openssl conflicts for:
python=3.11 -> openssl[version='>=1.1.1s,<1.1.2a|>=1.1.1t,<1.1.2a|>=1.1.1u,<1.1.2a|>=1.1.1v,<1.1.2a|>=3.0.10,<4.0a0|>=3.0.8,<4.0a0|>=3.0.9,<4.0a0']
Package libgcc-ng conflicts for:
python=3.11 -> libgcc-ng[version='>=11.2.0']
Package tk conflicts for:
python=3.11 -> tk[version='>=8.6.12,<8.7.0a0']
Package libuuid conflicts for:
python=3.11 -> libuuid[version='>=1.41.5,<2.0a0']
Package sqlite conflicts for:
python=3.11 -> sqlite[version='>=3.40.1,<4.0a0|>=3.41.1,<4.0a0|>=3.41.2,<4.0a0']
Package readline conflicts for:
python=3.11 -> readline[version='>=8.0,<9.0a0']

解决方法

conda 没有主流支持的包,一般都可以在 conda-forge 里面找,于是:

conda create -n gpt11 python=3.11 -c conda-forge

参考文献

使用 Conda 提前体验安装 Python 3.11

你可能感兴趣的:(1024程序员节)