Is there a way to force update a package's build in Anaconda?I installed Caffe2 pre built binaries via Anaconda, and now I need to update it. The list command reveals the package name, version, build, and channel:
caffe2 0.8.dev py36_2018.05.05 caffe2
The package, according to Anaconda cloud is currently still version 0.8.dev, but the build has been update (since May 5th), to py36_2018.07.20.If I run the update command:
conda update -n caffe2 -c caffe2 -f caffe2
The output is:
caffe2: 0.8.dev-py36_2018.05.05 caffe2 --> 0.8.dev-py36_2018.05.05 caffe2
Which is obviously not the newest build. I've found that if I create a new environment and do a fresh install of caffe2 then the console will confirm that I am installing the latest:
The following packages will be downloaded:
package | build
---------------------------|-----------------
caffe2-0.8.dev | py36_2018.07.20 8.4 MB caffe2
How can I update the package build to the newest without having to create a new environment or uninstalling/reinstalling in this case where the version number is still the same?
Thanks for any help!
Related
I installed OOO Development Tools following the Windows install which created a venv then runs poetry install.
The package was updated so I ran poetry update but it returned:
No dependencies to install or update
poetry show does not show the ooo-dev-tools package. Using pip show ooo-dev-tools I can see an old package version is installed in the venv.
How can the package be updated to the latest release?
poetry update updates the dependencies of the package ooo-dev-tools i.e, the dependencies mentioned in its pyproject.toml file to its latest version; bound to the version limits set in the toml file.
But I believe you want to actually update the root package ooo-dev-tools itself for this you would have to pull the latest changes to the cloned repo ooo-dev-tools and then do the poetry update and poetry install. (would be smooth as long as there are no big updates like change in python version or so...)
On the other hand, if you had the ooo-dev-tools installed as a dependency of another project and it is mentioned under [tool.poetry.dependencies] of the pyproject.toml then the poetry update will be considering this package as well for updation to latest version.
Using conda, I can not seem to build gcc-5 (or any gcc-X version) recipe on MacOS Mojave:
System pre-reqs
Install Xcode
Command Line Tools
Install headers package (/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg)
Run Xcode, to finalize the install.
Conda pre-reqs
Install Conda, conda-build
Obtain conda-recipes:
git clone git#github.com:conda/conda-recipes.git
Do the Sysroot stuff (as instructed by Anaconda compiler builds)
Which in a nut shell means:
Download and extract MacOSX10.9 SDK to /opt/MacOSX10.9.sdk
Build the ~/.conda/conda_build_config.yaml
macos_min_version:
- 10.9
macos_machine:
- x86_64-apple-darwin13.4.0
MACOSX_DEPLOYMENT_TARGET:
- 10.9
CONDA_BUILD_SYSROOT: # [osx]
- /opt/MacOSX10.9.sdk # [osx]
Instruct conda to use the above config file (~/.condarc):
conda_build:
config_file: ~/.conda/conda_build_config.yaml
Attempt to build gcc-5:
cd conda-recipes
conda build gcc-5 -c conda-forge
The above build fails. Pointing at atomic headers in Xcode. My assumption, is that Xcode 10.2.x is too new to build such an old gcc compiler? I have also tried to build my own conda gcc-9 recipe, but fail with missing images (dylibs not found/loaded). So I guess my real question, is what do folks do to build gcc-X using conda build? I can build GCC 9.2.0 manually on my own. But I wish to know how to properly do it using conda build.
Note to Stackoverflow guys: I think this question should be asked on SuperUser, but there is no tag 'conda'. Everyone seems to be posting conda questions here...
coda-recipes is deprecated, see README.md, conda-forge is the replacement.
On conda-forge, check out clangdev-feedstock.
I want to set up anaconda with tensorflow on an offline pc. But I am having trouble installing packages because dependencies are not resolved correctly.
On my online Windows10 pc I've installed anaconda and installed tensorflow in a separate environment. I downloaded all the packages and copied them to the offline Windows10 pc in a win-64 directory and indexed using conda index. I added the local directory as a channel to the available channels and have set conda to work offline.
I was able to update the local anaconda version using conda update conda from this channel and also to update all the packages available in the local channel. I then proceeded to create a channel with python=3.6.
However, when I then try conda install tensorflow-gpu I get the 'PackagesNotFoundError', saying that TF is dependent on other packages:
Collecting package metadata: done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- tensorflow-gpu -> tensorflow==1.13.1 -> tensorboard[version='>=1.13.0,<1.14.0'] -> grpcio[version='>=1.6.3'] -> openssl[version='>=1.1.1,<1.1.2.0a0']
- tensorflow-gpu -> tensorflow==1.13.1 -> tensorflow-base==1.13.1=gpu_py36h871c8ca_0
These packages are available, in the right version and build in the local channel and conda search lists them correctly.
It gets more peculiar:
I can install openssl en grpcio from file in my environment and have installed exactly the same version and build as on my online pc. However,
if I then try to install tensorflow-base conda gives:
Collecting package metadata: done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- tensorflow-base=1.13.1 -> grpcio[version='>=1.8.6'] -> openssl[version='>=1.1.1,<1.1.2.0a0']
Eventhough conda list lists them correctly (versions 1.16.1 and 1.1.1b) with the same builds as on my online pc.
So: I expected to able install tensorflow with its dependencies from the local package repository but are unable to do so. I also expected to be able to install the dependencies by hand and then be able to install tensorflow
but I still get PackagesNotFoundError.
I do not think this is a Tensorflow specific problem. But I've run out of ideas what to try next.
Any help on how to configure/force conda to install these packages would be greatly appreciated.
I am working with Anaconda with python 2.7. In order to do algorithmic trading I wanted to install 'zipline' package using conda giving command as
conda install -c Quantopian Zipline
from Anaconda prompt. After 'Solving environment' message, I got 'Package Plan' which contains packages which will be installed, removed, updated and downgraded. I was astonished to see that it will remove 'anaconda: 5.2.0-py27_3' and downgrade
networkx: 2.1-py27_0 to 1.11-py27_1;
numpy: 1.14.3-py27h911edcf_1 to 1.11.3-py27hc42714f_10;
numpy-base: 1.14.3-py27h917549b_1 to 1.11.3-py27h2753ae9_10;
pandas: 0.23.0-py27h39f3610_0 to 0.22.0-py27hc56fc5f_0.
I canceled the installation.
I have a couple of question here.
Why at all it is necessary for any package installation to remove package 'Anaconda' and downgrade packages like 'numpy', 'pandas' etc.?
Will this action not jeopardize my other python activities?
Shall I go ahead or restrain from installing the packages like this?
Zipline doesn't currently support the latest versions of packages like panda, numpy etc. which causes the messages above.
Well, yes it could make trouble, especially if your other python activities need the latest version of those packages.
Please don't go ahead with the installation like this. I'll explain the best available solution below.
Solution:
Create an environment for Zipline. Let's say (for convenience only) Zipline supports Python 3.5 but you have only installed Python 2.7 on your machine.
So you can create a sandbox-like conda-environment for Python 3.5. It's very straight forward, just use the following commands:
$ conda create -n env_zipline python=3.5
After your isolated environment called env_zipline was created, you have to activated it by using the following command:
$ activate env_zipline
You can install Zipline now by running
(env_zipline)$ conda install -c Quantopian zipline
When you finished your work with zipline you can deactivate the environment for zipline by using the following command:
(env_zipline)$ deactivate
Hope it helps. If your need further information you can check the more detailed documentation of zipline (the steps above are included):
http://www.zipline.io/install.html
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