How do I make Python 3.11 run in terminal on my Windows 10 system? - python

I downloaded Python for my Intro CS class last semester. It worked for the first month and a half of class. I was able to run programs in VSCode. Suddenly, when I clicked the button to run my code in the test terminal, nothing printed at all.
I went to Google and found out a lot of people had similar problems so I started following other people's troubleshooting methods. I tried turning on and off the app execution aliases. I doublechecked the path in Environment Variables to see that my computer was looking in the right place for Python. It was.
I went to my professor about this, and he tried to help me out. We tried to see if Python was working in PowerShell/other IDEs. It wasn't. This is the error:
PowerShell - App Execution alias off
The same error recurs now with App Execution alias on, although it used to be something different before my professor messed around a lot more with paths. My professor spent a lot of time trying things I don't really understand, mostly involving paths.
We spent a total of about 3 hours combined working on this with no results. I ended up working on my last 2 projects in an online IDE, which was annoying as hell.
Can someone please help me out? I really want to learn more Python on my own, on my own system.
Thank you so much for listening!

Related

Program not running using existing python virtual environment in intellij

Since last many months I was using intellij idea comfortably but suddenly something went wrong and all my existing projects are not running now. I have the python virtual environment in SDK section along with all the libraries. see here but then also my programs are not working at all. [](https://i.stack.imgur.com/Ck9Bi.png)
See this
some days back All these programs were working perfectly fine. I need help. This is very frustrating.
unfortunately, there is not enough information to provide a proper solution. Please get in touch with IDE support via Help | Contact support...

VS Code is unable to locate python

I have been looking at similar problems and everyone has a promising solution which usually revolves around changing the interpreter path. I have done my best but have run out of solutions that I can think of. I'm hoping someone else knows how and thank you for any comments.
No version of python ever appears, I have tried to enter the path in the box at the top but have had no luck
I want to switch from 3.10 to 3.9 and this is when not being able to select the version of python became a problem. The picture above is from the terminal within VS Code
This is the default path I have entered in VS Code
The photo above is from the Windows command prompt, locating the active version of python
I would like to be able to use Python 3.10 in some folders and 3.9 in others, however at the moment I really just need VS Code to see 3.9, I imagine once I know what has gone wrong at this stage it will be smooth sailing from here.
I have already uninstalled and reinstalled pretty much anything I can think could be related
I really hope I have just made a stupid mistake somewhere and it is really obvious, thank you again

anaconda: the solving environment keeps failing and freezing

I'm a beginner at all this code stuff so recently I have been trying to get this hole excel and python thing working using visual studio code and anaconda but without fail sup lexes me into the moon, I mean just doesn't work searching around to find a way to fix but nothing its been annoying and I have been at it for months now so whenever I try to get it to work it doesn't I'm using this guide https://code.visualstudio.com/docs/python/data-science-tutorial to help work it but nothing in the end if someone could tell me the problem or an alternative I would appreciate it here is an image to accompany it
basically I open the anaconda prompt and enter the command that was given to me by the guide but it just didn't work

PyCharm Debugger Stuck on "Collecting Data"

So I installed the free version of PyCharm professional last week and have been encountering the problem where I am debugging code on a remote server and when I try to display variables, it simply says "collecting data" and then if I try to continue the debugging process PyCharm breaks.
I have been researching solutions and I have Gevent compatible enabled as well as tried all 3 variable settings; Synchronously, Asynchronously, and On Demand.
I should also note that I am running into a problem where the debugger is skipping all my break points as well and I have to restart my server connection in order to get the break points to hit (and sometimes it takes a couple of tries)
I know that it is entirely possible to see the variables that are collecting data as one of my co-workers who recommended PyCharm has no problem, and there was 1 run where I was able to see the variables, but when I re-ran the commands (with absolutely no change), I was back at square one.
I've been going through PyCharm forums and it seems as if this has been a reoccurring issue for a handful of years now, but knowing that it worked once for me, and it works for my coworker, am I simply missing something?
Just recently my PyCharm has started to behave this way as well. I researched and tried the same solutions you did, to no avail. On certain projects it simply hangs forever on "collecting data" - projects that used to work - where code hasn't changed. Pls let me know if you find anything else; I will keep researching and testing as well
EDIT: FWIW. In my particular case I isolated the cause of this (at least I think). I had a very large dataframe in memory and if this DF is not in memory, the debugger does not hang. None of my watches were explicitly on this DF, but I guess the debugger needed to inspect it upon break and the object was just too big somehow. Note that it hung even if "variables loading policy" was set to "on demand", so the debugger still must automatically investigate all variables somehow.

Using Jenkins to run Python script but having issue importing modules on the script

I am really new to Jenkins and Python so when I have initially researched for this problem, there has been a limit to my understanding. I am looking to write a Python script and for it to be run on Jenkins as part of some automated testing I wish to do. My script interacts with an API and hence imports the 'requests' module on Python. It works fine using the Python interpreter on my local machine but I have had issues when I have tried using the Jenkins Python script builder and so I am looking for a way around this.
As I mentioned, I have looked around the internet for solutions but as my knowledge on this topic is limited I have found it difficult to understand certain ideas that have been mentioned on the web. One lead I have had is related to the use of virtual environments on Jenkins, but as its something I've never used, I have struggled implementing it. I have installed the ShiningPanda Plugin on Jenkins, but I am unsure how to use it.
Any help given is greatly appreciated :)
Thanks

Categories

Resources