|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
Python + Linux = no Python ?
Python must be mad at me.
I've installed Python's last version on my Linux partition, but being a total n00b to that OS, I'm confused. Say when I try my dummy helloworld.py, type python helloworld.py, I get a "python: can't open file "helloworld.py". Must be some permissions gimmick, I suppose, but I could be wrong. So what's not going on ? EDIT : Is there any good resources on arguments we can pass to Python via command line ? I KNOW there's one for optimization, for example.
__________________
Time is the greatest of teachers ; sadly, it kills all of its students. - Hector Berlioz |
|
#2
|
||||
|
||||
|
Yo Solar,
I know what you feel like, Sissy is teaching me FreeBSD and it seems so so comfusing, havn't even got a GUI or python on there yet, my stupid winmodem wont work lol ![]() Anyway I think the problem is more to do with the path than permissions (if your logged in as root then there should be nothing you dont have permission to do). Try using the abs' path to your script and see if that works. i.e. python home/solarbear/helloworld.py Mark. |
|
#3
|
||||
|
||||
|
That would be:
python /home/solarbear/helloworld.py ![]() And I really wouldn't recommend using FreeBSD without a GUI if you're new to UNIX ![]() |
|
#4
|
|||
|
|||
|
For arguments you can pass, check out 'man python'.
|
|
#5
|
||||
|
||||
Thanks for the advice telex, but I can't download a GUI untill i get a new modem or network it to my other comp. Plus i wanted to learn to use the Unix shell anyway.Haha sorry, can tell i'm a noob, missed the / at the beginning of the line ![]() Mark. |
|
#6
|
||||
|
||||
|
Well it does work and I figured the "man python" by myself after some thought. Thanks for the help, guys.
|
|
#7
|
|||
|
|||
|
If you're in that directory, you could also do "python ./helloworld.py"
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Python + Linux = no Python ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|