Python ( https://keras.io/ ) 에서 기계 학습을위한 libaray Keras를 설치하고 싶습니다 . Anaconda (관리자 권한)를 사용하고 다음 명령을 시도했습니다.
(base) C:\Users\wi9632>conda install keras
다음은 오류 메시지가있는 출력입니다.
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 the existing python installation in your environment:
Specifications:
- keras -> python[version='>=3.5,<3.6.0a0|>=3.6,<3.7.0a0']
Your python: python=3.8.5
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.
Keras를 설치하기 위해 무엇을해야하는지 말씀해 주시겠습니까? 올바르게 이해하면 내 Python 환경의 버전이 새로운 것입니까? 모든 의견에 감사드립니다.
내가 무엇을 할 수 있는지 아무도 모르나요? 나는 그것에 대해 아주 기쁠 것입니다.
업데이트 : 명령을 사용하여 시도했습니다.
conda install -c conda-forge keras ( https://anaconda.org/conda-forge/keras 참조 ) 그리고 Anaconda의 GUI를 사용하여 패키지를 설치하려고했습니다. 둘 다 동일한 오류 메시지를 생성했습니다.
문제가있는 것 conda
보다는있는 것 같습니다 . 여기를keras
참조 하십시오 . pip
대신 사용하면 conda
문제가 해결 될 수 있습니다.
그러나 keras
지금 사용 tf.keras
하는 것이 Keras로 작업하는 데 권장되는 방법이므로 어쨌든 사용하지 않는 것이 좋습니다 . 여기를 참조 하십시오 .
Keras 2.3.0은 TensorFlow 2.0을 지원하는 다중 백엔드 Keras의 첫 번째 릴리스입니다. TensorFlow 1.14, 1.13, Theano 및 CNTK와의 호환성을 유지합니다.
이 릴리스에서는 TensorFlow 2.0부터 tf.keras API와 동기화 된 API를 제공합니다. 그러나 대부분의 TensorFlow 2.0 기능, 특히 즉시 실행을 지원하지 않습니다. 이러한 기능이 필요하면 tf.keras를 사용하십시오.
이것은 또한 다중 백엔드 Keras의 마지막 주요 릴리스입니다. 앞으로는 사용자가 TensorFlow 2.0에서 Keras 코드를 tf.keras로 전환하는 것을 고려하는 것이 좋습니다.
그래서 만약 conda install tensorflow
당신을위한 작품, 단지의 외관을 교체 keras
하여 tf.keras
코드에서. 이렇게하면 keras
별도로 설치할 필요가 없습니다 .
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다