I am trying to install pytorch on my window.
First, I get command conda install pytorch torchvision cpuonly -c pytorchfrom here
(PyTorch Build:Stable(1.3);Your OS:Windows;Package:Conda;Language:Python3.6;CUDA:None), there are some problems described as followings:
**(python36) C:\Users\li_dan0109>conda install pytorch torchvision cpuonly -c pytorch
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:
- pytorch
Current channels:
- https://conda.anaconda.org/pytorch/win-32
- https://conda.anaconda.org/pytorch/noarch
- https://repo.anaconda.com/pkgs/main/win-32
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-32
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-32
- 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.**
Then I also switch pip install by the command pip3 install torch==1.3.1+cpu torchvision==0.4.2+cpu -f https://download.pytorch.org/whl/torch_stable.html Then I met this error:
**(python36) C:\Users\li_dan0109>pip3 install torch==1.3.1+cpu torchvision==0.4.2+cpu -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html
ERROR: Could not find a version that satisfies the requirement torch==1.3.1+cpu (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.3.1+cpu**
I really don't know how to fix it, please help me and thank you very much!
To install pytorch follow these two steps.
First of all run this command
C:\Users\User>conda install PyTorch -c PyTorch
then run this code
C:\Users\User>pip3 install torchvision
It looks as though you may have the 32-bit installation of Python, in which case you're issue is this: #16633.
Just be aware, that pyTorch doesn't work on 32-bit systems.
Please use Windows and Python 64-bit version.
Related
I have tried to install fastText through this by using anaconda prompt
conda install -c conda-forge fasttext
but I failed and the following message appears
(base) C:\Users\MAB>conda install -c conda-forge fasttext
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:
fasttext
Current channels:
https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
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.
Can any one help me in installation of fastText
As per the official site (https://anaconda.org/conda-forge/fasttext) one of the below three command can be used to install fasttext. I suppose you have only tried the first one, if that is not working, can you also try the others:
conda install -c conda-forge fasttext
conda install -c conda-forge/label/cf201901 fasttext
conda install -c conda-forge/label/cf202003 fasttext
If none of the above works, the other options are to use pip or build it from source.
For pip use the following command:
For windows:
pip install fasttext_win
For others:
pip install fasttext
Please note:
As per fastText documentation(
https://fasttext.cc/docs/en/python-module.html), it seems that FastText is only builds on modern Mac OS and Linux distributions. So if none of the above command works, you may have to try building it from source.
I'm new to Python. I installed miniconda to get packages iminuit and minuit. To do this, I created a new environment to avoid conflicts. But when I try to install minuit with the command
conda install minuit -c conda-forge
I get the following error messages:
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:
- minuit
Current channels:
- https://conda.anaconda.org/conda-forge/osx-64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/osx-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-64
- https://repo.anaconda.com/pkgs/r/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.
How can I solve this?
Exactly as the messages say, the package isn't available in the current channels. If you look on anaconda.org you will find:
https://anaconda.org/mutirri/minuit which says:
To install this package with conda run one of the following: conda install -c mutirri minuit conda install -c mutirri/label/all minuit
I'm not sure of the versioning of CERN's ROOT packages, but I guess that they no longer support Minuit package, instead Imminuit which is more lightweight and Jupyter friendly.
So you can install this package with this command, according to here:
conda install -c anaconda iminuit
I want to install kraken in my anaconda. So I followed this command got from PyPI -
pip install kraken
But I end up with an error and that is -
Collecting kraken
Using cached kraken-2.0.8-py3-none-any.whl (643 kB)
Collecting python-bidi
Downloading python_bidi-0.4.2-py2.py3-none-any.whl (30 kB)
Collecting protobuf>=3.0.0
Downloading protobuf-3.12.2-cp37-cp37m-win_amd64.whl (1.0 MB)
|████████████████████████████████| 1.0 MB 30 kB/s
ERROR: Could not find a version that satisfies the requirement torch>=1.0.0 (from kraken) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch>=1.0.0 (from kraken)
I,ve also tried the instruction from anaconda -
conda install -c bioconda kraken
But this time I've got -
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:
- kraken
Current channels:
- https://conda.anaconda.org/bioconda/win-64
- https://conda.anaconda.org/bioconda/noarch
- 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.
All these command I've eneterd is in Anaconda Prompt. So please help me through on how can I install kraken. TIA.
The GitHub repository has instructions for installing through Conda. It shows creating a new env, which generally is good practice.
Non-CUDA Version
$ wget https://raw.githubusercontent.com/mittagessen/kraken/master/environment.yml
$ conda env create -f environment.yml
CUDA Version
$ wget https://raw.githubusercontent.com/mittagessen/kraken/master/environment_cuda.yml
$ conda env create -f environment_cuda.yml
Note the --name flag can be used to specify an env name other than their default (kraken).
Install in Existing Environment
Technically, one can also use a YAML to install into an existing env. However, since it involves a pip-based installation, it is not recommended to install this to the base env (see Using Pip in a Conda Environment).
conda env update -n my_env -f environment.yml
I am trying to install pygraphviz but conda is not finding it in the channels. Below is the error I get. Conda-forge is already in the channel list and I tried with -c conda-forge but still does not work. I also tried bioconda channel and did not work.
> conda install -c anaconda pygraphviz
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:
- pygraphviz
Current channels:
- https://conda.anaconda.org/anaconda/win-64
- https://conda.anaconda.org/anaconda/noarch
- 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
- https://conda.anaconda.org/conda-forge/win-64
- https://conda.anaconda.org/conda-forge/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.
Pygraphviz should be there in bioconda and conda-forge according to the documentation, but I still cannot find the package.
I also update conda conda update conda, and still no luck.
Is there something wrong here? or something I am missing?
You are installing it from the wrong channel. Do:
conda install -c conda-forge pygraphviz
Updates: Windows
It appears that there are challenges installing pygraphviz on windows. Assuming that graphiz is installe and added to Path, which is a separate program (not python library) these solution might work
# Tom Hanks’ answer
conda install graphviz pygraphviz -c alubbock
See SO answers Installing Pygraphviz on Windows
"conda install graphviz pygraphviz -c alubbock" worked for me, within an Anaconda cme.exe terminal (and several failed attempts with other approaches). Elsewhere I had also been told to install a C+ compiler, which I did within Visual Studio. But maybe you can try without installing the C+ compiler
I'm trying to install wptools in my python 3 Anaconda environment to use in Jupyter. Since it is a non-conda package, I used pip. But I get this error:
(py3) C:\Users\owner>pip install wptools
Collecting wptools
Using cached https://files.pythonhosted.org/packages/e2/5c/0d8af5532e44477edeb3dac81d3a611ea75827a18b6b4068c3cc2188bfe5/wptools-0.4.17-py2.py3-none-any.whl
Requirement already satisfied: certifi in c:\anaconda2\envs\py3\lib\site-packages (from wptools) (2018.10.15)
Collecting lxml (from wptools)
Downloading https://files.pythonhosted.org/packages/43/c7/e088bf0f4f81e6b366cc2de12939c559b588b9525ad76215d122e69151ed/lxml-4.2.5-cp37-cp37m-win32.whl (3.2MB)
100% |████████████████████████████████| 3.2MB 1.2MB/s
Collecting html2text (from wptools)
Using cached https://files.pythonhosted.org/packages/16/20/de2b458ef434713053dd83209a03a5431ebe0527c8e14d9ae7838ff67d8a/html2text-2018.1.9-py3-none-any.whl
Collecting pycurl (from wptools)
Using cached https://files.pythonhosted.org/packages/e8/e4/0dbb8735407189f00b33d84122b9be52c790c7c3b25286826f4e1bdb7bde/pycurl-7.43.0.2.tar.gz
Complete output from command python setup.py egg_info:
Please specify --curl-dir=/path/to/built/libcurl
Command "python setup.py egg_info" failed with error code 10 in C:\Users\owner\AppData\Local\Temp\pip-install-39cbrz2h\pycurl\
I just had the same problem and solved it using pip install wptools.
I am not an expert and it seems weird that I cannot install it using the GUI (Anaconda Navigator).
Update: I see that I misread your question and that my solution did not work for you :).
(base) C:\Users\Biest>conda install wptools
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:
- wptools
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.
(Error Message)
(Solution)
(GUI does not work)
(The "black" window is the Anaconda Prompt.)
here's what you'll do
in your command prompt since you're already in a Conda environment use Conda to install pip (conda install pip)
afterwards pip install wptools and you're good to go :)
I had this same problem, and pycurl was the main cause in my case.
To fix it, I started by installing pycurl before installing wptools
conda install pycurl
pip install wptools
This error is probably related to setuptools. Upgrade setuptools and reinstall wptools.
pip install setuptools --upgrade
pip install wptools --ignore-installed