Python 3.6中的Anaconda环境无法安装PySide&Spyder

2024-06-06 15:11:01 发布

您现在位置:Python中文网/ 问答频道 /正文

github的downloaded程序相当复杂(对我来说很复杂),三年前就开始运行了,我试图在Anaconda Python 2.7环境中运行它(文档编写于2014年,当时2.7是最新版本),但我没有克服第一个障碍,即安装PySide(或让Spyder在环境中工作)

  • 我已经试着安装了 conda install -c conda-forge pyside==1.2.2 (该程序建议使用1.2.2,但anaconda显然不再提供该版本,不知道如何安装该版本)

  • 我尝试在没有指定版本的情况下安装pyside,因为版本1.2.2不可用,但1.2.4可用 conda install -c conda-forge pyside

  • 我已经检查过,当我尝试安装它时,我实际上处于2.7(后来在3.6中重复)环境中 conda activate MyEnvironment

但这仍然返回以下错误:

>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 abor/
failed

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

>Output in format: Requested package -> Available versions

我尝试将导入更改为PyQT5,并在Python3.8中运行它,但没有成功(这并不奇怪)

我完全能够在环境中安装其他软件包(例如numpy或PySide2),但不能安装Spyder

理想情况下,我想设法在2.7环境下运行这个程序,看看它是否有用,或者,我不介意关于将整个程序更新到3.8的快捷方式的提示


Tags: install程序版本jsonpackageenvironment环境with