Conda install BLPAPI - python

I followed the answer in:
Anaconda - Install blpapi in environment
but could not comment because I don't reputation high enough. When I use conda install -c dsm/blpapi I get the following:
Fetching package metadata ...........
Solving package specifications: ....
UnsatisfiableError: The following specifications were found to be in conflict:
- blpapi
- python 3.5*
Use "conda info <package>" to see the dependencies for each package.
This is using a virtual environment with Python 3.5 installed. Any thoughts on why this works for Pythonic but not me?

There is no built package for python=3.5. If you look under the files section of the repo in the dsm channel you will see
linux-64/blpapi-3.9.0-py36_0.tar.bz2
win-64/blpapi-3.9.0-py27_0.tar.bz2
win-64/blpapi-3.5.5-py27_0.tar.bz2
linux-64/blpapi-3.5.5-py27_0.tar.bz2
Switching to Python 3.6 should get this to work.

did you try ? :
conda update --all
conda create -n py35 python=3.5
activate py35
conda install -c dsm blpapi=3.9.0
you can also download from :
https://www.bloomberglabs.com/api/libraries/
and put it in the repository of python 3.5 library

Since this question was posted, Bloomberg put the blpapi on conda-forge,
Which has more versions of the blpapi and python supported.
https://anaconda.org/conda-forge/blpapi

Related

How to install seamsh in python

I tried to install seamsh 0.4.4(https://pypi.org/project/seamsh/) but counld not.
I spent a lot of time on it.
I needed gdal library to use seamsh.
So I installded it by conda because it was too complex to install it without conda.
But conda was not supported seamsh, so I don't know what to do.
Could you tell me how to install seamsh?
I use windows and vscode.
Thank you.
There's a pending PR to add it to Conda Forge. In the meantime, one can install it from PyPI. For example, try using the following environment:
seamsh.yaml
name: seamsh
channels:
- conda-forge
- nodefaults # only use conda-forge
dependencies:
## core software
- python=3.10 # set to preference
- pip
## libraries
- gdal
## Conda Python packages
- numpy
- scipy
- python-gmsh >=4.10 # used to ensure latest version
## PyPI Python packages
- pip:
- seamsh
Create with:
conda env create -n seamsh -f seamsh.yaml
At least on macOS, I'm seeing pip reinstall the Python gmsh package, despite the Conda Forge version being installed. Unsure why it isn't acknowledging the Conda version.

Conda install geopandas doing nothing

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.

Why is conda rejecting every version of python I try?

I'm trying to install a package from Anaconda Cloud called pyradiomics. So I wrote this Dockerfile:
FROM continuumio/miniconda3:latest
RUN conda install -c radiomics pyradiomics
which errored out with the message:
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- pyradiomics -> python[version='>=3.8,<3.9.0a0']
Your python: python=3.7
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
The error message seems to indicate I need version 3.8 of python specifically, so I tried to install that
FROM continuumio/miniconda3:latest
RUN conda install -c anaconda python=3.8 && python --version && conda install -c radiomics pyradiomics
but now get the error:
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- pyradiomics -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.4,<3.5.0a0']
Your python: python=3.8
When I have python 3.7 it wants 3.8 and when I have 3.8 it wants some other version. Is there a way to get conda to automagically resolve these version issues and install (all) the version(s) of python necessary? Or how would I best manually resolve this?
3.8 doesn't seem to be supportd as per https://pyradiomics.readthedocs.io/en/latest/installation.html#install-via-conda, though the 3.7 install conditions might contain an error.
In this case you can try to contact the authors or try with pip.

UnsatisfiableError: The following specifications were found to be in conflict: conda 4.0.8* -> conda-env <2.5 -> python 2.7* - python 3.6*

I am new to Python. I am trying to use Graphlab create launcher to import Graphlab libraries in my python notebook. I already have Anaconda installed on my MacBook Pro(OSX).
When I start to run Graphlab create launcher, I get following error,
UnsatisfiableError: The following specifications were found to be in conflict:
- conda 4.0.8* -> conda-env <2.5 -> python 2.7*
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.
You can find the detail of the log at https://github.com/jaysara/Python-ML/blob/master/launcher-install-log.txt
Can anyone help, why am I getting this error ?
You will have to first install latest update of anaconda and then install graphlab. The best way to use graphlab is using a Virtual env that I guess you are using. You may try in your terminal
conda update conda
To first get latest anaconda that may support graphlab. You may like to read the documentation on Graphlab how to create virtual env and install graphlab to correct if you have done any mistake : Link
I was having problems with:
conda install -y -c bioconda cwltool
I solved it by :
conda config --add channels conda-forge
the package (cwltool) I was trying to install could not solve dependencies that where satisfied in a different channel

Menpofit dlib: UnsatisfiableError during installation on Windows 10 using conda

I have been trying to install menpofit on a clean installation of anaconda for a while now. I have followed the instructions on the menpo project website for Windows, but I get the following error when I try to install menpofit using conda install -c menpo menpofit.
Error Message:
UnsatisfiableError: The following specifications were found to be in conflict:
- menpofit -> dlib 18.16 -> boost 1.56.0 -> python 3.5*
- menpofit -> menpo 0.6.* -> matplotlib 1.4.* -> pyparsing 2.0.1
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.
What I have tried:
Running conda install -c menpo menpo did not produce an error. I attempted to install dlib and boost using conda-forge, but this did not change the error message. I tried creating the conda environment using python 3.5. This seemed to install, but I quickly ran into a host of new problems with modules not being found and plenty of other errors that deserve their own question threads. Rebooting the computer or reinstalling anaconda did not seem to change anything.
For reference, I am running python 3.6 on a 32bit Window 10 computer.
Any suggestions would be greatly appreciated!
I eventually settled on using python 2.7 (conda create -n envname python=2.7). This seems to have solved all of my dependency issues.

Categories

Resources