Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

issue: Solving environment: failed #3

Closed
momonala opened this issue Jan 11, 2018 · 25 comments
Closed

issue: Solving environment: failed #3

momonala opened this issue Jan 11, 2018 · 25 comments

Comments

@momonala
Copy link

momonala commented Jan 11, 2018

I get the following error. I can install pytorch on the smaller test environment fine, but when I try to install it outside of the test env. I get the following error. I tried downgrading from Python 3.6.3 to 3.6.0 to no avail. Additionally, if I uninstall for the package that conda questions, I just get the same error with a new package (ex. I uninstalled xeus but qt now appeared. Any suggestions?

Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict:
  - pytorch
  - qt -> icu=58 -> *[track_features=vc14]
  - qt -> icu=58 -> vc==14
Use "conda info <package>" to see the dependencies for each package.
@peterjc123
Copy link
Owner

@momonala If you want to do this, please install the offline package.

@peterjc123
Copy link
Owner

@momonala It should be listed here.

@momonala
Copy link
Author

This worked. Thanks!

@aaryansingh-dev
Copy link

@momonala It should be listed here.

I downloaded the required version of pytorch but have no idea where to paste the extracted files.

@peterjc123
Copy link
Owner

@aaryan1210 What is the error at your side?

@peterjc123
Copy link
Owner

@aaryan1210 Consider using the official one? The one in my repo is outdated.

@aaryansingh-dev
Copy link

`(base) C:\Users\HP>conda install -c peterjc123 pytorch-cpu

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.
`

This is the error shown in anaconda prompt.

@peterjc123
Copy link
Owner

@aaryan1210 Please try conda install -c pytorch pytorch cpuonly.

@aaryansingh-dev
Copy link

I have a Cuda 9.2 toolkit installed and I downgraded my python version to 3.5 to match the version shown in error.

@aaryansingh-dev
Copy link

@aaryan1210 Please try conda install -c pytorch pytorch cpuonly.
Thanks a lot, this worked.

@aaryansingh-dev
Copy link

@aaryan1210 Please try conda install -c pytorch pytorch cpuonly.

Hey, I installed PyTorch using the above-mentioned code, but today the prompt is showing that no module named torch exists.

import torch Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'torch'

@peterjc123
Copy link
Owner

@aaryan1210 You have multiple python installation? What is the result of the following commands?

where conda
where python

@aaryansingh-dev
Copy link

Yes, I have 2 python installations and 3 conda installations.

F:\ProgramFiles\Anaconda3\Library\bin\conda.bat
F:\ProgramFiles\Anaconda3\Scripts\conda.exe
F:\ProgramFiles\Anaconda3\condabin\conda.bat

And python

F:\ProgramFiles\Anaconda3\python.exe
C:\Users\HP\AppData\Local\Microsoft\WindowsApps\python.exe

@peterjc123
Copy link
Owner

@aaryan1210 There is nothing wrong there. Maybe you installed it into a virtual environment?

@peterjc123
Copy link
Owner

Could you please show me the result of conda info -e?

@aaryansingh-dev
Copy link

I installed with (base) and I tried installing it in a virtual environment. But installed it in (base) too.

@aaryansingh-dev
Copy link

base * F:\ProgramFiles\Anaconda3
myenv F:\ProgramFiles\Anaconda3\envs\myenv

@peterjc123
Copy link
Owner

What about conda list pytorch and pip show torch?

@aaryansingh-dev
Copy link

# packages in environment at F:\ProgramFiles\Anaconda3:
#
# Name Version Build Channel

And pip didn't show any result.

@aaryansingh-dev
Copy link

I think think this means no pytorch is installed.

@peterjc123
Copy link
Owner

So it seems pytorch is not installed in this env. Just try to install it again.

@aaryansingh-dev
Copy link

Should I download it in env or base?

@peterjc123
Copy link
Owner

@aaryan1210 Just according to your needs. Both should work.

@aaryansingh-dev
Copy link

Ok, installation in env is working properly but the base* is showing error.

@peterjc123
Copy link
Owner

What error is it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants