Closed Nestak2 closed 1 year ago
Colab doesn't come with GSL pre-installed. Please try "!apt install libgsl-dev". (You can tell this is a GSL error with "!pip install --verbose corrfunc")
On Mon, Oct 17, 2022 at 9:55 AM Nestor Arsenov @.***> wrote:
General information
- Corrfunc version: 2.4.0, I guess, see error message below
- platform: Google colab
- installation method (pip/source/other?): pip install Corrfunc
Issue description
I tried to install Corrfunc in google colab notebook with !pip install Corrfunc and this leads to the error below [image: Screenshot from 2022-10-17 14-47-51] https://user-images.githubusercontent.com/16193553/196194150-8a5483e2-7198-4517-b9e4-15b050492ce2.png
I need Corrfunc, because I want to use the code from this repo https://github.com/amjsmith/hodpy and it utilizes Corrfunc Expected behavior
Corrfunc to be installed in the colab notebook Actual behavior
Full error message:
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting Corrfunc
Downloading Corrfunc-2.4.0.tar.gz (26.1 MB)
|████████████████████████████████| 26.1 MB 1.6 MB/s
Requirement already satisfied: numpy>=1.7 in /usr/local/lib/python3.7/dist-packages (from Corrfunc) (1.21.6)
Requirement already satisfied: future in /usr/local/lib/python3.7/dist-packages (from Corrfunc) (0.16.0)
Collecting wurlitzer
Downloading wurlitzer-3.0.2-py3-none-any.whl (7.3 kB)
Building wheels for collected packages: Corrfunc
Building wheel for Corrfunc (setup.py) ... error
ERROR: Failed building wheel for Corrfunc
Running setup.py clean for Corrfunc
Failed to build Corrfunc
Installing collected packages: wurlitzer, Corrfunc
Running setup.py install for Corrfunc ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fh09ttwg/corrfunc_02019416238e44339f09261d3c8cd01f/setup.py'"'"'; file='"'"'/tmp/pip-install-fh09ttwg/corrfunc_02019416238e44339f09261d3c8cd01f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-ng3u4e00/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/Corrfunc Check the logs for full command output.
Minimal failing example
Just execute !pip install Corrfunc in a google colab notebook
How can I install Corrfunc on Colab? Thanks for any answers and tips!
— Reply to this email directly, view it on GitHub https://github.com/manodeep/Corrfunc/issues/281, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLA7SZATRG7I2LDIEJCBG3WDVLEZANCNFSM6AAAAAARHDFCME . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Lehman Garrison Software Engineer Scientific Computing Core, Flatiron Institute lgarrison.github.io
@lgarrison Thanks a lot, this worked out!
General information
Issue description
I tried to install Corrfunc in google colab notebook with![Screenshot from 2022-10-17 14-47-51](https://user-images.githubusercontent.com/16193553/196194150-8a5483e2-7198-4517-b9e4-15b050492ce2.png)
!pip install Corrfunc
and this leads to the error belowI need Corrfunc, because I want to use the code from this repo and it utilizes Corrfunc
Expected behavior
Corrfunc to be installed in the colab notebook
Actual behavior
Full error message:
Minimal failing example
Just execute
!pip install Corrfunc
in a google colab notebookHow can I install Corrfunc on Colab? Thanks for any answers and tips!