# Installation of Python and sunpy

**URL:** <https://community.openastronomy.org/t/installation-of-python-and-sunpy/1131>\
**Category:** SunPy\
**Tags:** sunpy, question\
**Created:** [October 21, 2024, 3:46pm UTC](https://community.openastronomy.org/t/installation-of-python-and-sunpy/1131 "2024-10-21T15:46:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alen](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@Alen](https://community.openastronomy.org/u/Alen)\
**Post date:** [October 21, 2024, 3:46pm UTC](https://community.openastronomy.org/t/installation-of-python-and-sunpy/1131/1 "2024-10-21T15:46:06Z")

</div>

I am new in Python and sunpy. I started to install it and after miniforge was installed I did “conda list”, but, first it asks is it \_conda list and if I say no then I get “conda: Command not found.” It seems that install did not work. Can someone help, please? Alen

---

<div class="post-metadata">

**Author:** ![nabobalis](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/nabobalis/32/14_2.png) [@nabobalis](https://community.openastronomy.org/u/nabobalis)\
**Post date:** [October 21, 2024, 4:34pm UTC](https://community.openastronomy.org/t/installation-of-python-and-sunpy/1131/2 "2024-10-21T16:34:52Z")

</div>

Hello @Alen,

During the installation process for miniforge, I think that it asks if you want to add conda to your local shell. Sometimes this is does not trigger, so you can run `/path/to/where/you/installed/miniforge/bin/conda shell init` to add it there.

Then you can restart your shell by opening a new one and the `conda` command should work then.

---

<div class="post-metadata">

**Author:** ![Alen](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@Alen](https://community.openastronomy.org/u/Alen)\
**Post date:** [October 21, 2024, 4:57pm UTC](https://community.openastronomy.org/t/installation-of-python-and-sunpy/1131/3 "2024-10-21T16:57:58Z")

</div>

> [@nabobalis](#):
>
> /path/to/where/you/installed/miniforge/bin/conda shell init

Hello @nanobalis,

thank you for your answer. It seems to me that the problem is that I don’t know how to perform the following kine which I get at the end of  
bash Miniforge3…:

For changes to take effect, close and re-open your current shell. \<

Regards,  
Alen

---

<div class="post-metadata">

**Author:** ![nabobalis](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/nabobalis/32/14_2.png) [@nabobalis](https://community.openastronomy.org/u/nabobalis)\
**Post date:** [October 21, 2024, 6:02pm UTC](https://community.openastronomy.org/t/installation-of-python-and-sunpy/1131/4 "2024-10-21T18:02:45Z")

</div>

If you open a new terminal, that should work hopefully.

---

<div class="post-metadata">

**Author:** ![Alen](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@Alen](https://community.openastronomy.org/u/Alen)\
**Post date:** [October 21, 2024, 7:44pm UTC](https://community.openastronomy.org/t/installation-of-python-and-sunpy/1131/5 "2024-10-21T19:44:31Z")

</div>

Hello @nanobalis,

thank you for the answer. I tried that, but didn’t work. I had to restart the computer.

Regards,  
Alen

---

<div class="post-metadata">

**Author:** ![TheNovusCoder](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/thenovuscoder/32/565_2.png) [@TheNovusCoder](https://community.openastronomy.org/u/TheNovusCoder)\
**Post date:** [October 22, 2024, 9:58am UTC](https://community.openastronomy.org/t/installation-of-python-and-sunpy/1131/6 "2024-10-22T09:58:14Z")

</div>

Hi Alen. I think you could install Anaconda Navigator and use Python (Spyder or Jupyter Notebook) and then pip install sunpy through anacondaprompt. You may also do this directly by installing Python from its main webpage then pip install sunpy in command prompt or terminal.

I tried this for both windows 11 and linux pop os. It’s working great in both. Hope this helps.

---

<div class="post-metadata">

**Author:** ![nabobalis](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/nabobalis/32/14_2.png) [@nabobalis](https://community.openastronomy.org/u/nabobalis)\
**Post date:** [October 22, 2024, 3:09pm UTC](https://community.openastronomy.org/t/installation-of-python-and-sunpy/1131/7 "2024-10-22T15:09:30Z")

</div>

While you can do that, SunPy provides no support for that configuration.

---

<div class="post-metadata">

**Author:** ![Alen](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@Alen](https://community.openastronomy.org/u/Alen)\
**Post date:** [October 22, 2024, 6:40pm UTC](https://community.openastronomy.org/t/installation-of-python-and-sunpy/1131/8 "2024-10-22T18:40:31Z")

</div>

Hi TheNovusCoder,

thank you for the message! As said in the next answer it would not help me for SunPy.
