Python Forum
How do I pick the right python in Linux env?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I pick the right python in Linux env?
#1
How do I pick the right python in Linux env?
============================================

Thanks for reviewing my threads. I have a pyhton code developed in Windows Eclipse PyDev IDE. As I place this code in Linux environment, I am finding some challenges.

I added

#!/usr/bin/env python

to code in linux box xmlcode.py.

I find many python version like Python 2.3, 2.6, 3.2 etc

I made this code file to have execute privilege.

./xmlcode.py ==> throw file not found.

python xmlcode.py ==> not producing output

I find /usr/lib64/python2.6/site-packages/lxml in linux server

but import xml.etree.ElementTree as ET
from lxml import etree

not picking up in my code run

How do I pick the correct python version env for my code?

How do I bring xml.etree.ElementTree , lxml to above correct python version env?

What are the linux env (variable) set up required for my code to work?

Thanks for your guidance.
Reply


Messages In This Thread
How do I pick the right python in Linux env? - by MDRI - Jun-24-2020, 03:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is possible to run the python command to call python script on linux? cuten222 6 865 Jan-30-2024, 09:05 PM
Last Post: DeaD_EyE
  How to use a variable in linux command in python code? ilknurg 2 1,650 Mar-14-2022, 07:21 AM
Last Post: ndc85430
  Python syntax in Linux St0rmcr0w 2 57,242 Jul-29-2021, 01:40 PM
Last Post: snippsat
  Login to NordVPN on Linux with python script AGreenPig 2 6,120 Feb-09-2021, 10:44 AM
Last Post: AGreenPig
  how to run linux command with multi pipes by python !! evilcode1 2 6,475 Jan-25-2021, 11:19 AM
Last Post: DeaD_EyE
  where to get portable Python for Linux (Fedora)? python001 5 6,448 Nov-01-2020, 05:23 PM
Last Post: Larz60+
  Python in Linux environment on RPI kendias 22 11,374 Sep-05-2020, 03:04 AM
Last Post: K_Research
  control a linux program with python Fifoux082 9 4,214 May-08-2020, 04:24 PM
Last Post: Fifoux082
  Python version on Linux whois1230 5 3,633 Apr-10-2020, 07:12 PM
Last Post: buran
  how to get PID's of linux commands executed through python modules? Manikandan_PS 4 3,115 Mar-12-2020, 07:16 AM
Last Post: Manikandan_PS

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020