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
Related
When I run conda env create -f environment.yml on ubuntu 20.04, a dependency conflict occurs and I get the following error: CondaEnvException: Pip failed. How do I solve it?
I tried to update my anaconda environment, but that didn't work.
Output:
Collecting guesslang~=2.0
Downloading guesslang-2.2.0-py3-none-any.whl (2.5 MB)
Downloading guesslang-2.0.3-py3-none-any.whl (2.1 MB)
Downloading guesslang-2.0.1-py3-none-any.whl (2.1 MB)
Downloading guesslang-2.0.0-py3-none-any.whl (13.0 MB)
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pydriller to determine which version is compatible with other requirements. This could take a while.
The conflict is caused by:
guesslang 2.2.1 depends on tensorflow==2.5.0
guesslang 2.2.0 depends on tensorflow==2.5.0
guesslang 2.0.3 depends on tensorflow==2.5.0
guesslang 2.0.1 depends on tensorflow==2.2.0
guesslang 2.0.0 depends on tensorflow==2.2.0
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
Pip subprocess error:
ERROR: Cannot install -r /home/yang/Documents/CVE/CVEfixes/condaenv.ko814pto.requirements.txt (line 2) because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
CondaEnvException: Pip failed
If I've installed a python package using both conda and pip then when I call a function from that package, will I be using the version from conda or from pip?
My situation is as follows: I'm trying to use the from_estimator method released in scikit-learn version 1.0. this past September. However, my current version of scikit-learn was version 0.24.2 so I decided to update the package. I previously had installed conda, but never actually used it to update/install a package; instead I always used pip. This time I decided to try to install scikit-learn version 1.0 with conda. However, when I wrote conda install scikit-learn=1.0 in terminal, I got the error
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:
- scikit-learn=1.0
Frustrated, I decided to simply install scikit-learn version 1.0 with pip by typing pip install -U scikit-learn in terminal. This gave me the message
Requirement already satisfied: scikit-learn in /home/eturok/anaconda3/lib/python3.7/site-packages (0.24.2)
Collecting scikit-learn
Downloading scikit_learn-1.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (23.1 MB)
|████████████████████████████████| 23.1 MB 17.2 MB/s
Requirement already satisfied: joblib>=0.11 in /home/eturok/anaconda3/lib/python3.7/site-packages (from scikit-learn) (1.0.1)
Requirement already satisfied: scipy>=1.1.0 in /home/eturok/anaconda3/lib/python3.7/site-packages (from scikit-learn) (1.7.1)
Requirement already satisfied: numpy>=1.14.6 in /home/eturok/anaconda3/lib/python3.7/site-packages (from scikit-learn) (1.20.3)
Requirement already satisfied: threadpoolctl>=2.0.0 in /home/eturok/anaconda3/lib/python3.7/site-packages (from scikit-learn) (2.2.0)
Installing collected packages: scikit-learn
Attempting uninstall: scikit-learn
Found existing installation: scikit-learn 0.24.2
Uninstalling scikit-learn-0.24.2:
Successfully uninstalled scikit-learn-0.24.2
Successfully installed scikit-learn-1.0
Now typing pip list and conda list in terminal returns scikit-learn 1.0 and scikit-learn 1.0 pypi_0 pypi respectively.
My questions are:
If I only updated scikit-learn with pip, why is scikit-learn also updated with conda?
Why at the beginning was I unable to update scikit-learn with conda? This version of scikit-learn was released pretty recently. Is it possible that conda hasn't yet gotten around to supporting the new release of scikit-learn yet?
In general, how does conda decide which packages to support?
If I've installed a python package using both conda and pip then when I call a function from that package, will I be using the version from conda or from pip?
Not a conda expert, but since no one is bothering to answer:
I don't think it was. You got an error and installation was aborted. Might it be that conda list just sees the pip installed package and reports it as comming from pypi?
Yes, conda default repo for scikit-learn does not have 1.0 yet, 0.24 is the last (see here: https://anaconda.org/anaconda/scikit-learn). The conda-forge repo for scikit learn does have 1.0 (see here: https://anaconda.org/conda-forge/scikit-learn)
I don't know how packages move from conda-forge to conda. Probably you should always use conda forge as in conda install -c conda-forge scikit-learn. Or, even better, always use pip.
No idea, don't do it :) Always use either conda or venv virtual environments and in such cases burn them with fire and start anew.
I have a problem with installing cot-reports module for Anaconda from the following page:
https://github.com/NDelventhal/cot-reports
I am trying the following command for installation from Anaconda terminal:
conda install git+https://github.com/NDelventhal/cot-reports
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:
//github.com/ndelventhal/cot-reports
Any idea on how can I install this modeule for Anaconda?
I just released the package on PyPI three days ago, so it was only available through Github up to this week. It's a PyPI-only package, and is not listed among the Conda-Forge packages so far, so as of now it can only be found on PyPI. However, as for Conda-Forge it does not require the maintainer of the code to do the packaging, this can change any time.
Nevertheless, to install a pip package in a Conda environment, you should be able to just call: pip install cot_reports.
Try
pip install cot_reports
or
pip install git+https://github.com/NDelventhal/cot_reports
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 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.