Anaconda Terminal Windows 10

0 views
Skip to first unread message
Message has been deleted

Carim Jennings

unread,
Jul 18, 2024, 4:34:45 AM7/18/24
to tacamardu

I love the Windows Terminal and if you haven't tried it out yet I highly recommend it. Its super customizable which is absolutely lovely. Here are the steps to add Anaconda Prompt to Windows Terminal.

(base) C:\Users\navee> this is my actual anaconda prompt
(base) C:\WINDOWS\System32> this is anaconda prompt in windows terminal
in the windows terminal, I'm running anaconda prompt as administrator mode
help me change into the user mode with windows terminal

anaconda terminal windows 10


Descargar archivo https://urllio.com/2yP1L8



No, I'm not trying to run as admin.... while running in a Windows Terminal by default it's running in admin mode
I tried to change the path also, but every time in windows terminal, the anaconda prompt opening as administrator mode.
Anyways it won't make any difference if I run as administrator mode, so no probs
Thank You Cassie, thanks for ur time n support :)

@jfreeman2 it turned out that i used unnecessary capitalization in the property name. I used commandLine instead of commandline
cmd.exe opens up because it is the default value when commandline property isn't specified or improperly specified.

Hi all, I am not used to Jupyter notebook and usually use ubuntu (bash). I want to access a jupyter notebook through anaconda navigator, which I can do, but when I open a terminal it uses windows powershell instead of a linux or bash base. How do I go about changing this? I need to use a mix of R packages and bash (conda packages and linux based packages) for a script I need to run. I have tried to use %%bash from the python 3 kernel and it comes up with multiple errors.

This issue does not seem to be resolved and I am perplexed if this is intended behavior or an issue that has not been fixed. Basically if you have a streamlit app running and close the browser, trying to stop the app with ctrl+c does not work.

I can confirm this behavior. When I close the browser tab, the terminal no longer responds to Ctrl+C, I have to kill the process or close the terminal session.
However, if I remember correctly, this behavior only occurs under Windows.
These are my boundary conditions: Windows 10, Firefox, cmder terminal, Streamlit 1.19.0
I have not tried other browsers or other terminals.

I can also confirm. windows 11. finally I had multiple situations the app closing immediately starts if you CTR+click again on the localhost link to start the app again after closing the browser. So at least there is a workaround vs waiting atm.

Same behaviour here on Windows 10 using Microsoft Edge and Windows command line in PyCharm. Indeed, the workaround is to reopen the link to the Streamlit app and the terminal will be able to kill the process successfully.

I can also confirm this under Windows 10. I always thought this behaviour was intended (even though annoying). In short: When no tab is connected to the streamlit server, you cannot terminate the streamlit server by pressing CTRL+C in the terminal. You have to open a new tab first. Only then CTRL+C will actually go through.

These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.

These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.

These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.

These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.

I received the same error on all these terminals on my Windows computer:
Anaconda Prompt (anaconda3)
Anaconda Prompt (miniconda3)
Anaconda Powershell Prompt (anaconda3)
Anaconda Powershell Prompt (miniconda3)
Command Prompt
Windows PowerShell
but the dashed list of packages in the error message that were not found was slightly different between different terminals and was sometimes different when I ran the command multiple times in the same terminal.
I also tried it on the Ubuntu on Windows terminal (which I think uses the Windows Subsystem for Linux), but this seems not to support Conda, with error message:
conda:command not found

Some posts on other forums seemed to suggest that I modify the .yml file and move every package listed in the ResolvePackageNotFound error message to below a - Pip: line in the .yml, but this does not seem feasible given that there are so many packages in the list.

It seemed like a potential solution would be to try to get everything listed in the .yml file onto my computer in some way other than the command that creates a new environment, so I tried creating the new environment and then updating it with all the packages in the .yml file in three separate commands:

Although Codecademy recommends installing Miniconda, I highly recommend saving some headaches and installing the full version of Anaconda if you have the space on your PC and you are serious about getting into Data Analysis/Data Science. Miniconda is a barebones version of the Anaconda distribution, and is a little less beginner-friendly, coming with only Python, conda, pip, and a couple of dependencies necessary to make them work.

Anaconda and Miniconda come with a program called Anaconda Prompt on Windows, which is essentially just CMD terminal that is pre-set-up for conda. If you type Anaconda in your Windows search bar, you will see Anaconda Prompt come up. Click on it to use conda for the first time:

Now, there are a few ways you can do this: a) you can open your .bashrc and type it in there; b) you can type the path to conda.sh in Git Bash and add it to your .bashrc from there; or c) you can open Git Bash in the profile.d folder and utilize the bash command PWD in order to lower the risk of spelling errors in the path. The last option is my preferred choice, so that is what I will cover here.

Getting Anaconda to work on my MacBook pro was no problem at all, as simple as installing it and it worked, however, I have had nothing but issues on windows. I have tried following your steps, (thank you so much for them) at least 3 times now all to no success.

Got the same issues are the last two posters. I installed anaconda for all users, the .bashrc contains
. /c/ProgramData/Anaconda3/etc/profile.d/conda.sh
which is the correct path.
But it doesnt do anything.

Make sure there is a space between the period and the first forward slash in the path. Then make sure the .bashrc is saved. If Git Bash is open, close it, because it needs to be restarted for this to take effect. Re-open Git Bash and try the command conda activate.

However, there are also other factors that may be coming into play here with newer versions of Anaconda. I only wrote what worked for me, but maybe some of the answers on this SO thread will be useful to those who are having trouble with my instructions:

Decided to navigate to the directory within git bash using cd (I believe this is your option b) and then input the code. Wound up working (on the second try): I can use the conda activate code within gitbash and see (base) above the next prompt.

I assume I could solve it by completely uninstalling bash and repeating the process (hopefully getting it right the first time), and this might allow me to add the right click option to Git Bash Here while configuring the installation, but in the spirit of learning about Git Bash I am curious if there is another way.

Hope that helps somebody. Re not being able to find the folder, try choosing the folder yourself upon installing. Before that, it was nested in a local folder buried deep in USER. (Newb here so excuse my short understanding) Cheerio!
Anne

These notes are provided primarily for students of graduate schools IMPRS and DASHH, staff and students at the Max Planck Institute for the Structure and Dynamics of Matter and others at DESY, as well as students at the University of Southampton (United Kingdom).

The objective of these introductory notes is to help readers install Python ontheir own computers, and to support their learning of programming, computationalscience and data science, and subsequently their studies, particular in naturalsciences, mathematics, engineering, and computer science.

By the nature of the information provided, the content is likely to becomepartially outdated over time. For reference: this mini-introduction was writtenin September 2016, where Anaconda 4.1 was available, and Python 3.5 was thedefault Python provided, and last revised in December 2022, where conda wasversion 22.9.0, and Python 3.9.13 is the default interpreter.

Python is also a computer program (the technical term is ''interpreter'') which executes Python programs, such as hello.py. On windows, the Python interpreter is called python.exe and from a command window we could execute the hello.py program by typing:

For scientific computing and computational modelling, we needadditional libraries (sometimes called packages) that are not part of thePython standard library. These allow us, for example, to create plots,operate on matricies, and use specialised numerical methods.

The pytest package and tool supports regression testing and testdriven development -- this is generally important, and particularly soin best practice software engineering for computational studies andresearch.

Spyder (home page) is s a powerfulinteractive development environment for the Python language withadvanced editing, interactive testing, debugging and introspectionfeatures. There is a separate blog entry providing asummary of key features of Spyder,which is also available as Spyder's tutorial from inside Spyder(Help -> Spyder tutorial).

d3342ee215
Reply all
Reply to author
Forward
0 new messages