OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Mar 06, 2021 9:11 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Python pip package
PostPosted: Fri Oct 16, 2020 1:14 pm 
Offline
Member
Member
User avatar

Joined: Mon Sep 21, 2020 9:51 am
Posts: 33
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

_________________
Live Long And Prosper


Top
 Profile  
 
 Post subject: Re: Python pip package
PostPosted: Fri Oct 16, 2020 2:04 pm 
Offline
Member
Member
User avatar

Joined: Fri Nov 22, 2019 5:46 am
Posts: 577
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.

I like Python but I'm just more an C and Assembler expert.

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

_________________
The "fanboy" ;)
https://wiki.osdev.org/User:PeterX


Top
 Profile  
 
 Post subject: Re: Python pip package
PostPosted: Fri Oct 16, 2020 2:50 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 2822
PavelCheckov wrote:
Whenever I try to run a python file, the python command line pops and closes, and nothing happens.

What are you expecting it to do? Python scripts often require command-line parameters, but double-clicking starts the script without any parameters.


Top
 Profile  
 
 Post subject: Re: Python pip package
PostPosted: Tue Dec 08, 2020 12:26 pm 
Offline
Member
Member
User avatar

Joined: Thu Jun 04, 2009 11:12 pm
Posts: 277
Add python directory to your path
Open cmd ( Command prompt )

Try

Python < path to python file >

See what errors you get

--Thomas


Top
 Profile  
 
 Post subject: Re: Python pip package
PostPosted: Wed Dec 09, 2020 9:31 am 
Offline
Member
Member
User avatar

Joined: Mon May 22, 2017 5:56 am
Posts: 546
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.

_________________
Kaph link pending. code pending. design pending. plans in a state of flux! everything pending! choice of language still up in the air! why is nothing coming together?!?


Top
 Profile  
 
 Post subject: Re: Python pip package
PostPosted: Thu Dec 10, 2020 1:16 pm 
Offline
Member
Member

Joined: Sun Aug 23, 2020 4:35 pm
Posts: 129
eekee wrote:
(I needed Pygame for a balanced ternary computer emulator.)
Ternary? I'd like to see this... :D


Top
 Profile  
 
 Post subject: Re: Python pip package
PostPosted: Thu Dec 10, 2020 3:13 pm 
Offline
Member
Member
User avatar

Joined: Mon May 22, 2017 5:56 am
Posts: 546
foliagecanine wrote:
eekee wrote:
(I needed Pygame for a balanced ternary computer emulator.)
Ternary? I'd like to see this... :D

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!

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 link pending. code pending. design pending. plans in a state of flux! everything pending! choice of language still up in the air! why is nothing coming together?!?


Top
 Profile  
 
 Post subject: Re: Python pip package
PostPosted: Sun Jan 24, 2021 11:56 am 
Offline
Member
Member
User avatar

Joined: Mon Sep 21, 2020 9:51 am
Posts: 33
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. :mrgreen:

_________________
Live Long And Prosper


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group