Anaconda slows terminal - python

I recently installed anaconda to work with basic python scripts. The terminal started to be very slow on startup after installing anaconda: it loads the -python process and that's where it is really slow(about a couple of seconds but it's really annoying since the terminal was good to go instantly when i started it). I run on macbook m1. Is there any method to get rid of the loading of python at the terminal startup? And if not, is there any replacement of anaconda that is just as easy to use? I'm not an expert at python since i just started using it for a couple of months :)
I managed to get rid of the (base) environment in terminal but it seems that is not the cause of the slow startup

Related

Python command prompt very slow to appear (Anaconda)

I've lately noticed an increasing lag when I fire up the CMD window to run python.
Immediately after entering "python", I see the python version info, but instead of the command prompt (>>>) I just get a blinking cursor (not showing in screenshot). After what's now become a couple of minutes, the command prompt finally appears, and I can run python code as usual.
When this happens, the CPU on my little work laptop is clearly under heavy load, the fan goes way up.
I have basically the same setup on my home PC (still with the older Anaconda and python 3.7) and never had any problems like this.
I was running python 3.7 in Anaconda on Windows 10. I just do simple scripts, copy and paste the code in a terminal window. In my original version, I had the base env + one clone, both had this problem.
I tried updating conda and anaconda but nothing changed. I thought it might be some dependency conflicts (I had recently pip-installed a couple of heavy-ish packages into my clone env: pytessearct and openpyxl), so I finally uninstalled Anaconda and reinstalled the latest version (Anaconda3-2020.07-Windows-x86_64 with python 3.8) with the standard packages, and I still have the same problem.
One related clue: Anaconda Navigator was also hecka slow to load. I tried disabling SSL verification per this thread (Anaconda navigator VERY slow) but it had no effect on the time delay for the python command prompt. But with the fresh install, Navigator now loads normally.
In my new install, I did the same setup, base + clone, both with the standard Anaconda package set, no add-ons, I still have the same problem in both envs.

Venv interpreter is faster than system interpreter?? Python 3.6

I have been developing a Pacman game in python using pygame module, using IDE Pycharm. When setting up my project I went with the default settings in Pycharm and it set up a venv for me. Running the code from my system interpreter makes it run really really slow with the cpu usage being more than 200%, while running with the venv interpreter it works as expected and cpu usage is about 70-80%. My question is why is that and how to fix it.
I have not uploaded my code, because I thought maybe the problem is not with the code, however if you want I will edit the post and upload the code as well.

Installing Anaconda on Ubuntu does not work

Currently, I am watching an online course for python. That course is using Anaconda for the libraries etc.
Installing Anaconda on Windows 7 works perfectly fine. But I want to use all of the Stuff on Ubuntu since Linux works better for the stuff I want to develop.
Everything works fine from the point of downloading Anaconda for Linux, running it in the terminal and installing it.
The installations return Success "Thanks for installing Anaconda3!"
But from that point on nothing works. The installed folder with its files is there. But I cannot run the programm from the terminal, nor from a simple double-click on the symbol. Cause there is no symbol anywhere for it. Running it through the terminal by using the command "anaconda notebook", "Anaconda" etc. all don't work.
It acts like the programm isn't installed. Even tho it is. I reinstalled it several times. But it all doesn't work. I'm starting to get mad tbh...
Ubuntu runs over a virtual machine if that is important. VM Ware Workstation v14

Issue with Python on Windows 10

Specifically on my shiny new Surface Pro 2017 (i5, 256GB, 8GB RAM). So I'm trying to set up my dev environment and I'm running into a bit of a snag.
It shows up as installed through Powershell -and I'm able to run Python fine through it- but when I try the same on my Bash and Hyper terminals, no luck. I'm realizing now that Bash is not pictured in the screenshot, but it says the same thing when I try to run python commands. Did my due diligence in searching through the Surface subreddit, Google, and of course, Stack.
Anyone know what could be the issue?
Screenshot
In my opinion the best solution is to install python inside your bash environment, too. What is the main reason you even want to call the Windows version of python from the bash? If installing python inside the Ubuntu subsystem/the bash again, then you might try to find out the path to the python.exe inside your Windows installation and try to add these path to your bash's path, too.
Do yourself a huge favor and install Anaconda, and use command line prompt from now on and don't even Touch Powershell or bash. It's windows not linux. The reason I say anaconda is because it gives you a huge array of libraries and also you can create a virtual environment meaning if Python gets screwed on or corrupted at least your file paths will be okay.

Spyder IDE environment in Python

I am currently using Spyder and have been for a long time, however I downloaded anaconda recently and started using Spyder for Python 3.5 which gives me several problems.
Whenever I run a script in the Python Console, I have to run it twice and then when I am finished running it and want to run a new I have to kill the current process and reload it.
I am currently using some scripts with threading, but that never used to be a problem before I upgraded, anyone have similar experiences and know how to fix it?
(Spyder developer here) We're aware of these problems in the Python console, but unfortunately we don't know how to fix them.
Please use the IPython console instead because the Python console is going to be removed in Spyder 3.2.
I observe some problems of users about Spyder Console.Effective example for solution;
via Anaconda prompt:
conda create -n spyder-env spyder=4
conda env list
conda activate speder-env
spyder

Categories