How can I install orion-ml? - pip

The recommended method for installing orion-ml is via pip (e.g., pip install orion-ml) as stated in the github README.md
However, this simple command causes the error
INFO: pip is looking at multiple versions of baytune to determine which version is
compatible with other requirements. This could take a while.
Collecting baytune<0.3,>=0.2.3
Using cached baytune-0.2.4-py2.py3-none-any.whl (27 kB)
Using cached baytune-0.2.3-py2.py3-none-any.whl (27 kB)
INFO: pip is looking at multiple versions of mlblocks to determine which version is
compatible with other requirements. This could take a while.
INFO: This is taking longer than usual. You might need to provide the dependency resolver
with stricter constraints to reduce runtime. If you want to abort this run, you can press
Ctrl + C to do so. To improve how pip performs, tell us what happened here:
https://pip.pypa.io/surveys/backtracking
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 orion-ml to determine which version is
compatible with other requirements. This could take a while.
ERROR: Cannot install orion-ml because these package versions have conflicting dependencies.
The conflict is caused by:
mlprimitives 0.2.4 depends on tensorflow<2 and >=1.11.0
mlprimitives 0.2.3 depends on tensorflow<2 and >=1.11.0
mlprimitives 0.2.2 depends on tensorflow<2 and >=1.11.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
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
This tells us there is a version conflict. How can I resolve this? Thank you

I ran into the same issue and found out that orion-ml only worked with Python >=3.6, <3.8, but I had Python 3.9.2 installed which ended up pullig orion-ml 0.1.0 which is a very old version. I uninstalled 3.9.2 and installed a version under Python 3.8 and it worked

Install Anaconda:
https://www.anaconda.com/products/individual#download-section
Create a virtual environment with python version 3.7.(3.8.8 python makes an error installing "pip install orion-ml")
Run your python 3.7 virtual env.
pip install orion-ml : There's no error install "orion-ml" package.

Create a separate conda environment like:
conda create --name orion python=3.7 # or 3.6
conda activate orion
and then install tensorflow using:
pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.8.0-py3-none-any.whl
This will get you rid of the tensroflow error.

Related

AllenNLP Torch Version Unavailable

I am trying to install allennlp via pip on the latest version of macOS Catalina. The Python version is 3.9.0. The pip version is 20.2.4.
I was just able to install only a couple of weeks ago, but now I receive the following error when I run the command:
pip3 install allennlp allennlp-models
ERROR: No matching distribution found for torch<1.8.0,>=1.6.0 (from allennlp)
This is really bad because a time-sensitive project I am working on right now completely depends on allennlp working. I needed to reinstall due to some git issues, and my virtual env was reset. What can I do to resolve this issue?
Thanks.
EDIT: Somehow I ended up uninstalling 3.9 in homebrew and now I'm stuck at jsonnet. It errors out. I saw some posts about this issue, but none of the recommendations work.
EDIT2: I tried reinstalling brew's python 3.9. jsonnet standalone works again, but then I have the pytorch issue again.
I'm stuck in a loop. Neither the system macOS 3.8 python nor the latest 3.9 home-brew python works. I'd rather get the home-brew python working, but there's no valid version of torch available for that one apparently.
Do NOT accidentally use home-brew to download the latest Python 3.9. That isn't compatible with a lot of the required libraries.
Phew.

RASA pip installation fail: Multiple requirements incompatible

I am trying to install RASA using instructions here
I created a virtual environment and did a pip install rasa. But below is the error message with multiple dependencies incompatible. Do I install all the specified versions from the error message individually?
I found multiple people having installation issues and tried my best to find a solution in the forum, but couldn't.
error message- list of dependencies
It looks like you are trying to install Rasa1.x in an environment where you had previously installed rasa-nlu and rasa-core separately (pre Rasa 1.x). These are old versions that you can't mix with post-1.x Rasa.
I would recommend creating a new virtual environment, making sure it is active, checking that no rasa-nlu or rasa-core is installed, then running pip install -U rasa or pip install -U rasa==<rasa version that you want> if you want a specific version.

How to install justext package using Conda install when virtual environment is created?

I created virtual environment for python 3.4 version.I cant able to use pip from my network. I cant able to download files even. So i created virtual environment and started to install packages using conda install.
When i was using this command conda install -c syllabs_admin justext, i'm getting notification from my server like:
The following packages will be SUPERSEDED by a higher-priority channel:
python pkgs/free::python-3.4.5-0 --> pkgs/main::python-2.7.17-h9bab390_0
Can someone actually help me how to install this justext package for my python version 3.4 using conda install?
Unfortunately, no. There is no way that you can use conda install with any public channel to install justext and your python version. Checking the search function on anaconda.org, there are only two channels that provide justext:
moustik / justext 2.2.0
syllabs_admin / justext 2.2.0
Unfortunately, both have only python 2.7 packaged versions of the module.
you should try to fix your networking issues instead. It sounds really werid that conda install would be working while you claim to not be able to even download any files. Please talk to your IT department or Sys Admin about it or ask another question posting the errors you are getting when using pip install or wget https://files.pythonhosted.org/packages/6c/5f/c7b909b4b864ebcacfac23ce2f6f01a50c53628787cc14b3c06f79464cab/jusText-2.2.0-py2.py3-none-any.whl

Installing python-igraph for python 3.6 on Windows

I want to install the python-igraph package, but I am currently using python 3.6.1 and I don't find any installer for this new version of python. Do you know how can I install python-igraph for this version?
I have tried to install python-igraph for older versions from anaconda cloud but a version problem occurs.
!conda install -c vtraag python-igraph
Fetching package metadata .............
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- python 3.6*
- python-igraph -> python 3.5*
Use "conda info <package>" to see the dependencies for each package.`
I know that python-igraph exists for older python versions, but I don't want to overwrite the current python 3.6 version, so I think I need a new environment to install the older version and be able to use both.
I have already tried to create a new environment for python 3.5:
!conda create -n py35 python=3.5 ipykernel
But after 30min I didn't obtain any response...
I have also followed the same procedure to install a package for python 2.7 (from marufr contributor), but I get the same problem creating an environment for python 2.7.
Note: I am working from Jupyter notebook on Windows (win-64) and using Anaconda.
Update:
Solution found here:
https://medium.com/towards-data-science/environment-management-with-conda-python-2-3-b9961a8a5097
Since there is no python-igraph for python 3.6 yet, I have to use an older version.
First, from Anaconda Prompt, install the nb_conda_kernels package before creating the new environment:
conda install nb_conda_kernels
Then, create the environment where I will work with the older python version:
conda create -n py35 python=3.5 ipykernel
Finally, install the package through the wheel (found here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-igraph)
pip install python_igraph‑0.7.1.post6‑cp35‑none‑win_amd64.whl (You have to this command in the same folder that you donwloaded the wheel!)
There is a Windows installer for igraph‘s Python interface on the Python Package Index. Download the one that is suitable for your Python version (currently there are binary packages for Python 2.6, Python 2.7 and Python 3.2, though it might change in the future). To test the installed package, launch your favourite Python IDE and type the following:
import igraph.test
igraph.test.run_tests()
The above commands run the bundled test cases to ensure that everything is fine with your igraph installation.
Now, you can download 'python_geohash‑0.8.5‑cp36‑cp36m‑win_amd64.whl'.
Use the following command to install:
pip install python_geohash‑0.8.5‑cp36‑cp36m‑win_amd64.whl
Then you can use python-igraph in your Python3.6

unable to update statsmodels to version 0.8.0rc1 using conda

I am unable to update my statsmodels v. 0.6.1 to 0.8.0rc1 using conda (I used conda because I have conda installed).
I have tried several ways:
conda install statsmodels (based on http://www.statsmodels.org/dev/). Nothing
happened, my version stays the same.
conda update statsmodels. Still not updated, see below.
C:\Users\E245713>conda update statsmodels
Fetching package metadata .........
Solving package specifications: ..........
All requested packages already installed.
packages in environment at C:\Users\E245713\AppData\Local\Continuum\Anaconda3:
statsmodels 0.6.1 np111py35_1
Uninstalled statsmodels and installed it again, and it still installed the old version 0.6.1.
I am using windows 7 Enterprise.
Any ideas?
So, what I did is:
pip install statsmodels==0.8.0rc1
This works for me. I don't know the conda way...
I just had this issue as well. I went a different route. I went to the Anaconda website. I typed statsmodels in the search bar and it brings you to this page. From here you click the version you want to install using conda and it gives you command line syntax to download it.
conda install -c taugspurger statsmodels=0.8.0 is the version I installed.

Resources