Unable to install cobrapy on Anaconda

1,311 views
Skip to first unread message

kianoosh kargar

unread,
Mar 1, 2022, 3:45:26 PM3/1/22
to cobra pie
Today, all the day, I was trying to install using INSTALL.rst file and surfing on the net but I could not !!
I tried installing using Jupyternotebook, Anaconda power shell and  Anaconda prompt. but all of them give this error :

PackagesNotFoundError: The following packages are not available from current channels:

  - cobra
  - optlang[version='>=1.2.5']
  - cobra
  - ruamel.yaml[version='<0.15']
  - cobra
  - swiglpk
  - cobra
  - depinfo[version='>=1.5.1']
  - cobra
  - python-libsbml[version='>=5.18.0']
  - cobra
  - diskcache[version='>=5.0']

I even tried this command: conda install -c bioconda -c conda-forge cobra
but it gives:
CondaValueError: Malformed version string '~': invalid character(s).

can anyone give me a step by step solution for installing and using COBRApy in Jupyter notebook?
thanks a lot.


ch.d...@gmail.com

unread,
Mar 11, 2022, 2:31:10 PM3/11/22
to cobra pie
That error seems to be the result of an outdated Anaconda. Can you update you Anaconda and conda to a recent version and check if the error persists?

Reply all
Reply to author
Forward
0 new messages