anaconda/conda - install a specific package version
There is no version 1.3.0
for rope
. 1.3.0
refers to the package cached-property
. The highest available version of rope
is 0.9.4
.
You can install different versions with conda install package=version
. But in this case there is only one version of rope
so you don't need that.
The reason you see the cached-property
in this listing is because it contains the string "rope"
: "cached-p rope erty"
py35_0
means that you need python version 3.5
for this specific version. If you only have python3.4
and the package is only for version 3.5
you cannot install it with conda.
I am not quite sure on the defaults
either. It should be an indication that this package is inside the default conda channel.
How can I install a particular version of a conda package?
If you look through all of the package versions on the first page, you will notice that their label is 'main'. However, the version you want to install has the label 'cf201901'.
You should therefore change your install command to:
conda install -c conda-forge/label/cf201901 eccodes=2.7.0
By including the label in the channel it will be able to find the correct older version.
Alternatively, you can copy the link of the old package directly from the website you were browsing and just run:
conda install https://anaconda.org/conda-forge/eccodes/2.7.0/download/osx-64/eccodes-2.7.0-0.tar.bz2
If you want to install version 2.7.0 for osx
Installing specific BUILD of an anaconda package
The column with py27_0
is what build/version of python it is for. The column with defaults
is to indicate which Anaconda channel it falls under. Different users or organizations can have their own channels but the default channel is defaults
and another popular channel is conda-forge
.
The way you install any specific version from that information is:
conda install pillow=4.2.1=py27h7cd2321_0
Which is of the format
conda install <package_name>=<version>=<build_string>
If you want to choose which channel (otherwise defaults
is chosen by default):
conda install -c <channel> <package_name>=<version>=<build_string>
Install package from conda for a specific version of python
The following code creates an environment with a specific python version (2.7 since 3.4 was not an option), then you activate it and install the package you need.
conda create -n test python=2.7
conda activate test
conda install -c bioconda plastid
python
Then in Python, I did the following and got no errors
from string import maketrans
Specific package version with conda-forge
The way you install any specific version from that information is:
conda install -c conda-forge keras=1.0.7=py27_0
Which is of the format
conda install <package_name>=<version>=<build_string>
If you want to choose which channel (otherwise defaults
is chosen by default):
conda install -c <channel> <package_name>=<version>=<build_string>
Note: The comment above (+1) already solved the question, this answer yet adds some details and strives to improve readability.
Conda - search for package, specify Python version
There isn't a direct mechanism to constrain Python version outside of running the actual solver. However, the major channels use the Python version (say 3.8) to generate a string (say "py38"
) that is included in the build string. This can thus be used as proxy, by searching for constraints on the build string. For example, the following (equivalent) expressions should pick up all Python 2.7 builds of numpy
in the configured channels:
## search all versions with 'py27' build string
conda search 'numpy=*=*py27*'
## alternative (MatchSpec) syntax
conda search 'numpy[build=*py27*]'
The first version must explicitly specify the version as unconstrained ("*"); the latter directly specifies the build constraint, with the unconstrained version implied.
Related Topics
Multiprocessing - Pipe VS Queue
How to Interact with the Recaptcha Audio Element Using Selenium and Python
What Is the Meaning of "Failed Building Wheel for X" in Pip Install
Too Many Values to Unpack Calling Cv2.Findcontours
Set Up Python Simplehttpserver on Windows
Rotate Image and Crop Out Black Borders
Login to Website Using Urllib2 - Python 2.7
Appending List But Error 'Nonetype' Object Has No Attribute 'Append'
Python: Fastest Way to Create a List of N Lists
Child Processes Created with Python Multiprocessing Module Won't Print
Run Powershell Function from Python Script
Python - When to Use File VS Open
Python: Start New Command Prompt on Windows and Wait for It Finish/Exit
How to Resize an Image with Opencv2.0 and Python2.6
Python Command Line Input in a Process
Python Replace String Pattern with Output of Function