安装 jupyter,尽管 pin-1 无法安装,因为它需要 python 3.12

rog*_*lah 10 python miniconda jupyter jupyter-notebook python-3.11

conda install jupyter尝试从 Anaconda 提示符处安装 jupyter ,引发pin-1 in not installable because it requires python 3.12

\n

我安装了python 3.11,我安装的miniconda版本使用python 3.11。

\n

还有其他方法安装jupyter吗?

\n

完整的错误回溯:

\n
Collecting package metadata (repodata.json): done\nSolving environment: / warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE\nfailed\n\nLibMambaUnsatisfiableError: Encountered problems while solving:\n  - package jupyter-1.0.0-py27_4 requires python >=2.7,<2.8.0a0, but none of the providers can be installed\n\nCould not solve for environment specs\nThe following packages are incompatible\n\xe2\x94\x9c\xe2\x94\x80 jupyter is installable with the potential options\n\xe2\x94\x82  \xe2\x94\x9c\xe2\x94\x80 jupyter 1.0.0 would require\n\xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x94\xe2\x94\x80 python >=2.7,<2.8.0a0 , which can be installed;\n\xe2\x94\x82  \xe2\x94\x9c\xe2\x94\x80 jupyter 1.0.0 would require\n\xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x94\xe2\x94\x80 python >=3.10,<3.11.0a0 , which can be installed;\n\xe2\x94\x82  \xe2\x94\x9c\xe2\x94\x80 jupyter 1.0.0 would require\n\xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x94\xe2\x94\x80 python >=3.11,<3.12.0a0 , which can be installed;\n\xe2\x94\x82  \xe2\x94\x9c\xe2\x94\x80 jupyter 1.0.0 would require\n\xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x94\xe2\x94\x80 python >=3.5,<3.6.0a0 , which can be installed;\n\xe2\x94\x82  \xe2\x94\x9c\xe2\x94\x80 jupyter 1.0.0 would require\n\xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x94\xe2\x94\x80 python >=3.6,<3.7.0a0 , which can be installed;\n\xe2\x94\x82  \xe2\x94\x9c\xe2\x94\x80 jupyter 1.0.0 would require\n\xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x94\xe2\x94\x80 python >=3.7,<3.8.0a0 , which can be installed;\n\xe2\x94\x82  \xe2\x94\x9c\xe2\x94\x80 jupyter 1.0.0 would require\n\xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x94\xe2\x94\x80 python >=3.8,<3.9.0a0 , which can be installed;\n\xe2\x94\x82  \xe2\x94\x94\xe2\x94\x80 jupyter 1.0.0 would require\n\xe2\x94\x82     \xe2\x94\x94\xe2\x94\x80 python >=3.9,<3.10.0a0 , which can be installed;\n\xe2\x94\x94\xe2\x94\x80 pin-1 is not installable because it requires\n   \xe2\x94\x94\xe2\x94\x80 python 3.12.* , which conflicts with any installable versions previously reported.\n\nPins seem to be involved in the conflict. Currently pinned specs:\n - python 3.12.* (labeled as 'pin-1')\n
Run Code Online (Sandbox Code Playgroud)\n

小智 9

你可以这样做:

    conda install python=3.10
Run Code Online (Sandbox Code Playgroud)

然后,重新运行此命令:

    conda install jupyter
Run Code Online (Sandbox Code Playgroud)


小智 4

只需在您的环境中安装版本介于 3.10 - 3.11 之间的 python

我刚刚先用这个命令解决了这个问题:

conda 安装 python=3.10

然后:

conda 安装 jupyter