Blame view

docs/source/install_for_use.rst 1.05 KB
96482ab2   Alain Klotz   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
***************************************************
Installing GuitAstro for standard using
***************************************************

Prerequisite: You have ever downloaded Guitastro and installed Python.

1. Python setup
**********************

For Linux users:

.. code-block:: bash

	cd ~/Documents/guitastro/
	sudo python3 setup.py install

To uninstall GuitAstro:

.. code-block:: bash

	sudo pip uninstall guitastro
	
For Windows users, open a Powershell as administrator. 
A quick way to open Powershell as administrator is 
Win+R (execute commands) and put: 

.. code-block:: bash

	powershell Start-Process powershell -Verb runAs
	
Then, in the Powershell terminal:

.. code-block:: bash

	cd C:\Users\xxx\Documents\guitastro\install
	python setup.py install

To uninstall GuitAstro:

.. code-block:: bash

	pip uninstall guitastro

2. Import guitastro from everywhere
***********************************

The previous step recorded Guitastro as a package of Python.
The simple line "import guitastro" should work:

.. code-block:: python

	import guitastro