Im on Windows and I have python 3.9.0 installed. Whenever I try to run a python file, the python command line pops and closes, and nothing happens. Also, I go through all the pip install procedures and it jsut wont work.
Please help!!!!
Thx,
Pavel
Python pip package
- PavelChekov
- Member
- Posts: 113
- Joined: Mon Sep 21, 2020 9:51 am
- Location: Aboard the Enterprise
Python pip package
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe
Live Long And Prosper
Slava Ukraini!
Слава Україні!
The Final Frontier,
Space,
The Universe
Live Long And Prosper
Slava Ukraini!
Слава Україні!
Re: Python pip package
I like Python but I'm just more an C and Assembler expert.PavelCheckov wrote:Im on Windows and I have python 3.9.0 installed. Whenever I try to run a python file, the python command line pops and closes, and nothing happens. Also, I go through all the pip install procedures and it jsut wont work.
Maybe here are Python experts who can help you. But I recommend a more python-related forum for finding more experts:
https://python-forum.io/Forum-General-Coding-Help
Greetings
Peter
-
- Member
- Posts: 5513
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Python pip package
What are you expecting it to do? Python scripts often require command-line parameters, but double-clicking starts the script without any parameters.PavelCheckov wrote:Whenever I try to run a python file, the python command line pops and closes, and nothing happens.
Re: Python pip package
Add python directory to your path
Open cmd ( Command prompt )
Try
Python < path to python file >
See what errors you get
--Thomas
Open cmd ( Command prompt )
Try
Python < path to python file >
See what errors you get
--Thomas
Re: Python pip package
I've heard Python is used heavily for Windows administration, so there should be good info out there. Otherwise, what Thomas said. I've had python running natively on Windows, but haven't used it terribly much. I can confirm it behaves almost identically to how it does on Linux, if it's in your path. VS2019 installs it as "py" rather than "python".
Having said that, if you're running a Python GUI program, the way you're doing it should work if you've got the right libraries. (I needed Pygame for a balanced ternary computer emulator.) Running it from the command line may be the only way you'll see the error.
Having said that, if you're running a Python GUI program, the way you're doing it should work if you've got the right libraries. (I needed Pygame for a balanced ternary computer emulator.) Running it from the command line may be the only way you'll see the error.
Kaph — a modular OS intended to be easy and fun to administer and code for.
"May wisdom, fun, and the greater good shine forth in all your work." — Leo Brodie
"May wisdom, fun, and the greater good shine forth in all your work." — Leo Brodie
-
- Member
- Posts: 148
- Joined: Sun Aug 23, 2020 4:35 pm
Re: Python pip package
Ternary? I'd like to see this...eekee wrote:(I needed Pygame for a balanced ternary computer emulator.)
Re: Python pip package
Certainly! It's called by the world's most unpronounceable acronym, SBTCVM. I used the Mark 2. I had some input, mostly "the CPU needs a stack" because the Mark 2 doesn't have one. (Such is the nature of learn-by-doing. ) I implemented stacks in software, but didn't get much of anything else done and ended up realising I needed to get better at low-level programming in general. There's a better SBTCVM now, which I haven't used because I drifted on to other things. It has a higher-level language which isn't Forth. Gen2-9 The screenshots look impressive!foliagecanine wrote:Ternary? I'd like to see this...eekee wrote:(I needed Pygame for a balanced ternary computer emulator.)
I quite enjoyed balanced ternary, but I wanted something a little more real and I came to realise it's not very practical to implement in hardware -- as far as I can understand. I figured out some logic gates but the best I can do is barely better than the RTL of the 1960s, and relies on particular transistors to even achieve that. (They need to be MOSFETs with a 7V turn-off voltage.) A Russian academic who was involved with the Setun balanced ternary computer explained its design was cost-effective in the era of expensive transistors. Perhaps it was, but it didn't make the best use of its core memory. It used a pair of cores to store one trit; holding 1 of 3 values, where a binary computer could store 2 bits in the same 2 cores; 1 of 4 values. This is strange because I would have thought the cores could be polarised either way to store 1 trit each, but I don't really know anything about how core memory works or how the Setun practically operated with diodes and coils in place of transistors. And I'm sure I'm waaaay off topic now.
Kaph — a modular OS intended to be easy and fun to administer and code for.
"May wisdom, fun, and the greater good shine forth in all your work." — Leo Brodie
"May wisdom, fun, and the greater good shine forth in all your work." — Leo Brodie
- PavelChekov
- Member
- Posts: 113
- Joined: Mon Sep 21, 2020 9:51 am
- Location: Aboard the Enterprise
Re: Python pip package
I tried to build a ternary computer @ the beginning of the pandemic, but realized that I didn't have the right equipment, so its sitting in the back of my workshop. Recently, I made a C library that supports ternary data types (ex: tryte, trit, tribble), for a simulator of a trinary computer.
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe
Live Long And Prosper
Slava Ukraini!
Слава Україні!
The Final Frontier,
Space,
The Universe
Live Long And Prosper
Slava Ukraini!
Слава Україні!