Python 2.7 on Windows installation for Astronomy

  • Python
  • Thread starter Hugom42
  • Start date
  • #1
Hugom42
Hello people i know this program is better to use on Linux, but for personal reasons i can't change to Linux OS. So i'm having a little problema on how to use python and install the modules of astropy, ipython, i've already installed pip but i have a error on python shell that says: Error syntax, i write the instruction pip install astropy and also sudo pip install and doesn't work. Hope you can answer me quickly and can solve this problem!
 

Answers and Replies

  • #2
34,017
5,672
Hello people i know this program is better to use on Linux, but for personal reasons i can't change to Linux OS. So i'm having a little problema on how to use python and install the modules of astropy, ipython, i've already installed pip but i have a error on python shell that says: Error syntax, i write the instruction pip install astropy and also sudo pip install and doesn't work. Hope you can answer me quickly and can solve this problem!
Why aren't you using a newer version of Python? 2.7 is fairly old, with the current version for Windows being v3.5. The documentation for Python gives all the steps needed for running Python under Windows, which is mostly setting up the environment variables (such as path and a few others) so that Python can find the directories needed.
 
  • #3
145
93
i have a error on python shell that says: Error syntax, i write the instruction pip install astropy and also sudo pip install and doesn't work.
The pip commands are not meant to be run within the Python shell- they need to be run at a command prompt in Windows.

I would stay with 2.7 if you are going to be doing scientific computing. A number of packages still aren't fully compatible with version 3, and most of the code you come across will probably have been written in 2.7.
 

Related Threads on Python 2.7 on Windows installation for Astronomy

  • Last Post
Replies
10
Views
1K
  • Last Post
Replies
4
Views
613
  • Last Post
Replies
6
Views
2K
Replies
4
Views
1K
Replies
1
Views
2K
Replies
1
Views
406
Replies
6
Views
872
Replies
3
Views
2K
Replies
17
Views
5K
Top