question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deceptive instructions for installing Astropy in CASA

See original GitHub issue

These docs are a bit outdated and have a few problems: http://docs.astropy.org/en/stable/install.html#installing-astropy-into-casa

  1. The suggestion of using easy_install should be dropped entirely.
  2. Don’t suggest using pip.main from a Python prompt. The pip module was never intended to be used as a library and the fact that people do so has been a headache for the pip developers. pip.main has since been deprecated and removed (actually moved to pip._internal) to discourage its use.
  3. I have played with Astropy in CASA before but not in a long time, so I don’t know why it’s easier to ask users to do things this way. But if it must be (as opposed to just providing the right python -m pip ... command), something like this would be better:
import subprocess, sys
subprocess.check_call([sys.executable, '-m', 'pip', 'install', ...])

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:30 (30 by maintainers)

github_iconTop GitHub Comments

2reactions
bsipoczcommented, Sep 14, 2018

but if they don’t willing to support it, then what can we do anyway 🤷‍♀️

1reaction
pllimcommented, Nov 17, 2018

There was a stop-gap warning inserted in #8043 for 3.1, so removing milestone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation — Astropy v5.2
Users of the Anaconda Python distribution should follow the instructions for Using Conda. To install astropy with pip, run: pip install astropy.
Read more >
Installation of astropy in casa - python - Stack Overflow
I am trying to install astropy into CASA 4.3.1 on my Mac. I'm following the instructions found here. But after running pip.main(['install', ...
Read more >
Untitled
Yoga jones quotes, Nvidia 301.42 won't install! ... Junker wr 275-8, Detrazioni casa 2013, Neo malthusian vs anti malthusian, Chalisgaon railway station, ...
Read more >
Manual for XCLASS-Interface
XCLASS interface directory or if you install a new CASA version. ... following python packages: numpy, scipy, pyfits (astropy), ...
Read more >
OtherPackages - CASA Guides
To add astropy to CASA we recommend following the instructions ... 3.1 How to Identify Your CASA Python; 3.2 Installing Packages to the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found