issue: Solving environment: failed
momonala opened this issue · 25 comments
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.
@momonala If you want to do this, please install the offline package.
This worked. Thanks!
@aaryan1210 What is the error at your side?
@aaryan1210 Consider using the official one? The one in my repo is outdated.
`(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.
@aaryan1210 Please try conda install -c pytorch pytorch cpuonly
.
I have a Cuda 9.2 toolkit installed and I downgraded my python version to 3.5 to match the version shown in error.
@aaryan1210 Please try
conda install -c pytorch pytorch cpuonly
.
Thanks a lot, this worked.
@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'
@aaryan1210 You have multiple python installation? What is the result of the following commands?
where conda
where python
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
@aaryan1210 There is nothing wrong there. Maybe you installed it into a virtual environment?
Could you please show me the result of conda info -e
?
I installed with (base) and I tried installing it in a virtual environment. But installed it in (base) too.
base * F:\ProgramFiles\Anaconda3
myenv F:\ProgramFiles\Anaconda3\envs\myenv
What about conda list pytorch
and pip show torch
?
# packages in environment at F:\ProgramFiles\Anaconda3:
#
# Name Version Build Channel
And pip didn't show any result.
I think think this means no pytorch is installed.
So it seems pytorch
is not installed in this env. Just try to install it again.
Should I download it in env or base?
@aaryan1210 Just according to your needs. Both should work.
Ok, installation in env is working properly but the base* is showing error.
What error is it?