Thanks to our user community for contributing this issue to the docs. * Further discussion in the WSL product repo on GitHub. Sudo apt -y install python3-pip -fix-missing Unless you are running an aftermarket firewall, the likely solution is to simply re-install pip: sudo apt -y purge python3-pip (Warning: on WSL do not try editing nf, that file is a symbolic link and modifying it is a can of worms). When researching this problem you may be led down several rabbit holes, none of which are particularly productive with a WSL linux distribution. Temporary failure in name resolution')': /simple/flask/ I have both 2 and 3 installed apparently.When installing a package (like Flask) with pip on Windows Subsystem for Linux (WSL or WSL2), for example python3 -m pip install flask, you may specifically encounter an error like this: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))Īfter connection broken by 'NewConnectionError(': Failed to establish a new connection: If you can figure this out, remember I would like to use python3. My status tab just says: 11:09:36: File /home/matt/Desktop/Linux_PDFs/AAA do this first/HelloWorldinGeany.py opened(1). (program exited with code: ~/Desktop/Linux_PDFs/AAA do this first $ When I tried Pref > Terminal > checked the box to run in VTE I got: My terminal settings in Tools is: x-terminal-emulator -e "/bin/sh %c"Īnd the Terminal Shell setting is : /bin/bash I added the 3 after python in the build, but that didn't help. I then went into my folder, right clicked the HelloWorld script, Geany opened, then I clicked the clog and got a pop up terminal(?), it said "Unable to find a shell." I had the other file in my home directory because I wanted the latest and greatest and downloaded and installed from the net and not the software manager. Removed directory '/home/matt/.config/geany' Removed directory '/home/matt/.config/geany/filedefs' Removed '/home/matt/.config/geany/filedefs/filetypes.README' Removed '/home/matt/.config/geany/filedefs/filetypes.python' Removed directory '/home/matt/.config/geany/templates' Removed directory '/home/matt/.config/geany/templates/files' Removed '/home/matt/.config/geany/templates/templates.README' Removed directory '/home/matt/.config/geany/tags' You were right, I did not see the dot in front of config. After you've done that you can when you want to test your script just open a terminal on the directory where you have the file and run it with the command. After saving it for the first time, open your file manager and right-click the file there and go to Properties > Permissions and set to allow executing the file as a program. You can just use your system's default text editor (xed) to write Python scripts. If all else fails it's perhaps time to switch to an alternative. What did it say there after running the program? Going back to your earlier screenshot I see the Terminal tab (bottom left) is trying to catch your attention. Did you install Geany by downloading it from somewhere manually perhaps? I have no idea why you would have a directory ~/usr/geany/nf in your home directory. v on the rm command should indeed tell you which files it removes. The path to remove isn't ~/config/geany, it's ~/.config/geany. You should just run your program directly. As noted, you don't normally ever use the build command on Python scripts. Recent_files=/home/matt/Desktop/Linux_PDFs/AAA do this first/HelloWorldinGeany.py /home/matt/Desktop/Linux_PDFs/AAA do this first/user_input.py /home/matt/Desktop/Linux_PDFs/AAA do this first/HelloWorldTestInSublimeText3.py /home/matt/Desktop/Linux_PDFs/AAA do this first/GuessTheNumber.py /home/matt/Desktop/Linux_PDFs/AAA do this first/tryingHelloWorldSublimeText.py /home/matt/environments/hello.py /home/matt/Desktop/Linux_PDFs/AAA do this first/spiral.py įILE_NAME_0=73 Python 0 EUTF-8 1 1 0 %2Fhome%2Fmatt%2FDesktop%2FLinux_PDFs%2FAAA%20do%20this%20first%2FHelloWorldinGeany.py 0 4īy default I see Geany has those build commands set for Python scripts. Scribble_text=Type here what you want, use it as a notice/scratch board Statusbar_template=line: %l / %L col: %c sel: %s %w %t %mmode: %M encoding: %e filetype: %f scope: %S Notebook_double_click_hides_widgets=false
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |