I was trying to install h2o (3.10.0.9) on Anaconda 3 in windows 10, 64 bit. The installation seemed to proceeded, and after it shows
"executing transaction:done"
what i got in the prompt window were a few command lines:
(base) C:\WINDOWS\system32>set "JAVA_HOME="
(base) C:\WINDOWS\system32>set "JAVA_HOME_CONDA_BACKUP="
(base) C:\WINDOWS\system32>set "JAVA_HOME=C:\Users\Xu\Anaconda3\Library"
And at this point, I still cannot import h2o in jupyter notebook (no module named h2o). Note that the installation of h2o and installation of openjdk was done at the same time. I downloaded JAVA outside anaconda, and did some manual changes in the environmental variables, but it seems that this is not the problem.
Anaconda Navigator shows that h2o is installed, while h2o-py is not. Now, the problem with h2o-py is that if I install it, it will show this error:
UnsatisfiableError: The following specifications were found to be in conflict:
- h2o-py
- zict
Use "conda info <package>" to see the dependencies for each package.
Now, I checked all the dependencies:
colorama
future
patsy
python 3.5*
requests
tabulate
I installed future, and then tried installing tabulate, but it also shows the same UnsatisfiableError ... in conflict with zict. Then I removed zict package, and then both the installations of tabulate and h2o-py show another similar error, but this time in conflict with xlrd package. It took me too long time that I really don't want to waste any more on this.
Could anybody tell to me what I can do in order to be able to simply use h2o in anaconda? I would very much appreciate it!
Though it's too late, may be helpful for someone else.
I had the same problem and solved it by installing 'h2o' using pip command:
pip install h2o
or if you are in IPython environment:
!pip install h2o
I had a similar issue on macOS, tried to install using conda install -c anaconda h2o as advised in anaconda documentation However, it did not reflect in my JupyterLab.
I finally resolved the issue by using !pip install h2o
Related
I use Python and pycharm as a tool.
If you use the pip statement to install the library, you will get an error.
For example, if I want to download the torch (1.6.0) version and type pip install torch==1.6.0,
It says no version.
This is not the end, but some libraries continue to cause strange conflicts and will not be installed.
For example, if you type pip install poro to install the poro library, an unknown error pops up and the installation fails.
I'm not asking for a pororo installation.
My question is, I want to know how to download the library without relying on pycharm.
I want to download it separately from a site like pypi and put the library directly into the virtual environment (conda).
What should I do?
The following worked for me:
First, install mkl using conda:
conda install -c anaconda mkl
Then run this:
conda install -c pytorch pytorch
I'm using conda with Spyder/Python 3.8.8.
I'm trying to install the geopandas package through conda-install, but when running it, I receive no output.
I've input the command conda install -c conda-forge geopandas and let it run for 30 minutes so far, so I doubt it's just a large package or poor connection. I don't know if I'm supposed to be seeing progress updates, but if I am, I'm not.
Any help is appreciated, thanks!
If you are using the base Anaconda environment, then there are packages that are conflicting with geopandas. I suggest you to create new environment for geopandas:
open anaconda command line and run this command to create new environment:
conda create --name gis python==3.8
You can use any version of python you like of course. Then you need to activate it:
conda activate gis
Now you can install geopandas and jupyter lab if you need it (Personally recommend VSCode):
conda install -y -c conda-forge geopandas jupyterlab
enter code here
Use below command to install,
conda install geopandas
or
pip install geopandas
When using pip to install GeoPandas, you need to make sure that all dependencies are installed correctly.
fiona provides binary wheels with the dependencies included for Mac and Linux, but not for Windows.
pyproj, rtree, and shapely provide binary wheels with dependencies included for Mac, Linux, and Windows.
Windows wheels for shapely, fiona, pyproj and rtree can be found at Christopher Gohlke’s website.
Depending on your platform, you might need to compile and install their C dependencies manually. We refer to the individual packages for more details on installing those. Using conda (see above) avoids the need to compile the dependencies yourself.
This solution might not be exactly relevant, but since there is no marked solution, it might help...
I recently ran into a problem installing geopandas as well. Though I did mine through my terminal and I did receive an error message: OSError: could not find or load spatialindex_c-64.dll.
I used: conda install -c conda-forge rtree=0.9.3.
Check out this post for more info.
I'm trying to install a python package directly from github. In my case that's SciANN. When I selected my environment in conda using conda activate myenv and afterwards install this package as explained in this post using the following lines of code:
conda install git pip
pip install git+git://github.com/sciann/sciann.git
it is successfully installed and I get the message "Successfully built SciANN" in the end of the insatllation procedure. When I then open spyder and type import sciann I get the error ModuleNotFoundError: No module named 'sciann'. I also tried to use pip3 instead of pip but this did not change something.
Have I missed something? Is this package now installed correctly into my environment myenv?
The deleted answer from Jay Prakash together with the comments brought me on track. Yes there can be different versions of packages installed. So in my case SciANN was installed using pip as they currently do not offer a conda installation while all my other packages where installed with conda. I ended up having two different versions of tensorflow installed, one from pip and one from conda so I deleted one. Additionally I used Python version 3.7 while this package supports only up to 3.6. And I had to use a non official tensorflow version because my CPU does not support AVX which is a whole new topic.
I'm currently trying to reinstall Geopandas as well as Geoplot. The packages were installed previously, and worked fine earlier today. However due to a package limitation I needed to reinstall anaconda completely.
I've tried installing it via the navigator to no avail. looking through previous questions I tried running:
conda install geopandas
as well as, and for Geoplot
conda install geoplot -c conda-forge
now when I try importing the packages into Spyder IDE (3.3.3) I receive this error:
ImportError: cannot import name 'buffer_to_virtual_file' from 'fiona.ogrext' (unknown location)
I figured it may have had something to do with Fiona, so I uninstalled and reinstalled that, as well as update all packages via:
conda update --all
At this point I'm lost, installation through the console isn't my strong suit and I'm not entirely sure what options to take next. Let me know if you need me to list anything else.
I am trying to follow to the installation guide on tensorflow.org and have installed Python version 2 again for that reason using Homebrew.
When I run the installation as described
$ pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
I get this error message:
tensorflow-0.5.0-py2-none-any.whl is not a supported wheel on this platform.
I am obviously doing something wrong, but have no idea. Any clues?
I do not want to use virtualenv, since anaconda already comes with its own environment management conda. When installing the newest version 0.6.0 directly with pip install, I had a similar error. It seemed to not resolve the dependencies correctly.
Here is what you can try:
Install anaconda
Create a new conda workspace
Download the specific protobuf version that tensorflow needs: https://pypi.python.org/pypi/protobuf/3.0.0a3
Install it via sudo easy_install ~/Downloads/protobuf-3.0.0a3-py2.7.egg
Install a numpy version greater than 1.08.x via conda install numpy
Download the 0.6.0 version of tensorflow: https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py2-none-any.whl
Install via pip install ~/Downloads/tensorflow-0.6.0-py2-none-any.whl
When you install tensorflow from the whl file directly, it should tell you when dependencies are not there. It seems not to be able to resolve these conflicts independently. My setup had issues with protobuf and numpy. After installing them manually everything worked fine.
I hope this helps!
It seems to be a common issue. Try to install it in the virtualenv. Its a much better solution, as you can always easily set up a new version of tensorflow without conflicts.
VirutalEnv Tutorial:
http://tensorflow.org/get_started/os_setup.md#virtualenv-based_installation
On the Mac, I didn't have any problem installing tensorflow with the anaconda version of python: https://www.continuum.io/downloads
The anaconda version also provides science, math, engineering, and data analysis packages. A lot of people on https://www.kaggle.com/ seem to use this...just a thought.