Giter Site home page Giter Site logo

Installing with pip about pysatcdf HOT 12 CLOSED

pysat avatar pysat commented on June 3, 2024
Installing with pip

from pysatcdf.

Comments (12)

asher-pembroke avatar asher-pembroke commented on June 3, 2024 1

A lot of places suggest the delocate tool which makes pip wheels portable. That would at least solve the issue where users aren't able to install with pip.

from pysatcdf.

rstoneback avatar rstoneback commented on June 3, 2024

from pysatcdf.

dcsozturk avatar dcsozturk commented on June 3, 2024

Hi, I also run into a problem trying to install pysat, pysatCDF, and pysatMagVect with pip. It is not directly relevant but I was hesitant to start a new issue, since it is technically an "installation with pip issue". Please feel free to move/edit as you see fit.

I have the following:

  • macOS v.10.14.6
  • gcc 9.2.0_1 (installed with Brew)
  • python2.7.15 (also tried this in python3)

I get a bunch of warnings during installation, all seem to be related with the incompatibility between Apple clang and gfortran versions I installed with Homebrew. To fix I had to define new aliases in my bashrc file to point the gcc and gfortran installed by brew in my /usr/local/bin/.

The problem is similar to pymc-devs/pymc#119

from pysatcdf.

rstoneback avatar rstoneback commented on June 3, 2024

from pysatcdf.

asher-pembroke avatar asher-pembroke commented on June 3, 2024

Also, note that install_name_tool requires users to have the xcode developer tools installed so putting the command in setup.py may not help: https://stackoverflow.com/a/11598098

from pysatcdf.

rstoneback avatar rstoneback commented on June 3, 2024

The delocate looks like it would be helpful for pip.

from pysatcdf.

asher-pembroke avatar asher-pembroke commented on June 3, 2024

I found a lot of issues with clang as well, but gcc seems to work better.

I'm able to install from setup.py using the following environment setup

conda create -n pysatCDF python=2.7
conda install -c anaconda gcc
conda install -c anaconda numpy
pip install pysat (or setup.py after cloning pysat)

Then, from pysatCDF directory:

python setup.py install (or pip install .)

@rstoneback Anything left to do here?

from pysatcdf.

rstoneback avatar rstoneback commented on June 3, 2024

from pysatcdf.

asher-pembroke avatar asher-pembroke commented on June 3, 2024

Yep, it works with python3 as well.

from pysatcdf.

rstoneback avatar rstoneback commented on June 3, 2024

I've uploaded delocated versions of pysatCDF to pypi for macosx. python 2 and 3.8 are currently supported.

from pysatcdf.

aburrell avatar aburrell commented on June 3, 2024

I was finally able to fix various issues and got pysatCDF to install on my laptop (OSX Mojave) with python 2.7, 3.7, and 3.8.

from pysatcdf.

rstoneback avatar rstoneback commented on June 3, 2024

from pysatcdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.