Print

Print


Hi Peter,

This stackoverflow post:

https://stackoverflow.com/questions/53807511/pip-cannot-uninstall-package-it-is-a-distutils-installed-project

suggests that this is an OS-managed python installation. So you might
need to install all of these dependencies via yum.

This is one of the most frustrating things about Python - working with
multiple installations and environments. You may wish to invest in
learning about virtualenv or, possibly preferably, look at using
miniconda:

 - https://conda.io/en/latest/miniconda.html
 - https://virtualenv.pypa.io/en/latest/

*Or* if you have FSL >= 5.0.10 installed, you can use the miniconda
environment that comes bundled with it. For example, to create a
separate python 2 environment for ICA-AROMA (change the path to a
suitable location on your system):

  $FSLDIR/fslpython/bin/conda create -p
/path/to/ica-aroma/environment/ python=2.7

To activate this environment:

  source $FSLDIR/fslpython/bin/activate /path/to/ica-aroma/environment/

Then you can "pip install" or "conda install" all of the ICA-aroma
dependencies into that environment.

Cheers,

Paul




On 23/07/2019, Peter van Ruitenbeek
<[log in to unmask]> wrote:
> Dear Paul,
>
> I'm afraid I get the same message.
>
> Now, I've done a full check of all required packages.
> First, running python2.7 -m pip -r requirements.txt from the ICA-AROMA
> directory returns several times that  matplotlib already satisfies the
> requirements. It then attempts to install pyparsing, numpy, kiwisolver,
> matplotlib, pandas, seaborn, but it gives an error at pyparsing (see below)
>
> Requirement already satisfied: future in /usr/lib/python2.7/site-packages
> (from -r requirements.txt (line 1)) (0.17.1)
> Collecting matplotlib==2.2 (from -r requirements.txt (line 2))
>   Using cached
> https://files.pythonhosted.org/packages/d5/6c/05d5ee9970d195be42af9c8ed0211e7193233930111cc0d8687a7f3d5f29/matplotlib-2.2.0-cp27-cp27mu-manylinux1_x86_64.whl
> Collecting numpy==1.14 (from -r requirements.txt (line 3))
>   Using cached
> https://files.pythonhosted.org/packages/0d/8a/e0223a40f980e0442a2045dcf79e4a8a90339593525599a0add318da2428/numpy-1.14.0-cp27-cp27mu-manylinux1_x86_64.whl
> Collecting pandas==0.23 (from -r requirements.txt (line 4))
>   Using cached
> https://files.pythonhosted.org/packages/76/fa/3bb6b95bf389762c7690ffba2250b6a8a1cbcc321f8cfb864116c98df831/pandas-0.23.0-cp27-cp27mu-manylinux1_x86_64.whl
> Collecting seaborn==0.8 (from -r requirements.txt (line 5))
>   Using cached
> https://files.pythonhosted.org/packages/d6/13/dd3da2cd6e03e522bbd389735d3adcb47d7a4470a968ebc3348fbac8eddd/seaborn-0.8.tar.gz
> Requirement already satisfied: python-dateutil>=2.1 in
> /usr/lib/python2.7/site-packages (from matplotlib==2.2->-r requirements.txt
> (line 2)) (2.8.0)
> Requirement already satisfied: subprocess32 in
> /usr/lib64/python2.7/site-packages (from matplotlib==2.2->-r
> requirements.txt (line 2)) (3.2.6)
> Requirement already satisfied: cycler>=0.10 in
> /usr/lib/python2.7/site-packages (from matplotlib==2.2->-r requirements.txt
> (line 2)) (0.10.0)
> Requirement already satisfied: six>=1.10 in /usr/lib/python2.7/site-packages
> (from matplotlib==2.2->-r requirements.txt (line 2)) (1.12.0)
> Requirement already satisfied: backports.functools-lru-cache in
> /usr/lib/python2.7/site-packages (from matplotlib==2.2->-r requirements.txt
> (line 2)) (1.5)
> Requirement already satisfied: pytz in /usr/lib/python2.7/site-packages
> (from matplotlib==2.2->-r requirements.txt (line 2)) (2016.10)
> Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from
> matplotlib==2.2->-r requirements.txt (line 2))
>   Using cached
> https://files.pythonhosted.org/packages/9f/dc/b205465a60baca8e04a1555a84d9c79f910661765056f071fb6fc2db4841/pyparsing-2.4.1-py2.py3-none-any.whl
> Collecting kiwisolver>=1.0.1 (from matplotlib==2.2->-r requirements.txt
> (line 2))
>   Using cached
> https://files.pythonhosted.org/packages/3d/78/cb9248b2289ec31e301137cedbe4ca503a74ca87f88cdbfd2f8be52323bf/kiwisolver-1.1.0-cp27-cp27mu-manylinux1_x86_64.whl
> Requirement already satisfied: setuptools in
> /usr/lib/python2.7/site-packages (from
> kiwisolver>=1.0.1->matplotlib==2.2->-r requirements.txt (line 2)) (0.9.8)
> Installing collected packages: pyparsing, numpy, kiwisolver, matplotlib,
> pandas, seaborn
>   Found existing installation: pyparsing 1.5.6
> ERROR: Cannot uninstall 'pyparsing'. It is a distutils installed project and
> thus we cannot accurately determine which files belong to it which would
> lead to only a partial uninstall.
>
> Perhaps this is where is goes wrong?
>
> Cheers, Peter
>
> ########################################################################
>
> To unsubscribe from the FSL list, click the following link:
> https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
>

########################################################################

To unsubscribe from the FSL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1