UnsatisfiableError с установкой conda для старой версии pytorch - PullRequest
0 голосов
/ 15 апреля 2020

Я работаю над проектом, в котором используется обученная модель с pytorch 0.2, и она не может быть загружена с последними версиями pytorch. Так что мне пришлось понизить pytorch до 0.2. но после запуска команды понижения:

conda install pytorch=0.2 -c pytorch

я получаю эту ошибку:

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:

  - pytorch=0.2 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0']

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.

, а затем, как кажется в ошибке, требуется, чтобы я использовал python 3.5 или 3.6, но когда Я использую среду с python 3.5. Я получаю это:

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:

  - pytorch=0.2 -> python[version='>=3.7,<3.8.0a0|>=3.8,<3.9.0a0']

Your python: python=3.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.

Я также связал python 3,6 env, и это тоже самое.

Кто-нибудь знает, что происходит?

...