我试图使用conda安装Pygame模块。
我使用了以下命令:
conda install pygame
它给了我以下错误:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- pygame
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
然后我使用以下命令:
conda install -c cogsci pygame
输出:
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.
Examining python=3.7: 100%|██████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 11.12it/s]-failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- pygame -> python[version='2.7.*|3.5.*']
Your python: python=3.7
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
我已经使用conda install安装了不同的模块,例如tensorflow,numpy,pandas,matplotlib,它们都可以工作,但是在pygame中却给我一个错误。 如何修复并安装Pygame?
答案 0 :(得分:2)
位于DllNotFoundException: AkWaapiClient
AkWaapiClient..cctor () (at
Assets/Wwise/Deployment/API/Handwritten/WAAPI/AkWaapiClient.cs:210)
Rethrow as TypeInitializationException: The type initializer for 'AkWaapiClient' threw an exception.
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:200)
的pygame包已有4年历史,仅与python2.7兼容。如果要最新版本,请使用cogsci
。我个人使用pip install pygame
的conda软件包,该软件包仅适用于linux-64